lib/generators/clearance/install/templates/README in clearance-1.3.0 vs lib/generators/clearance/install/templates/README in clearance-1.4.0
- old
+ new
@@ -4,18 +4,18 @@
Next steps:
1. Configure the mailer to create full URLs in emails:
# config/environments/{development,test}.rb
- config.action_mailer.default_url_options = { :host => 'localhost:3000' }
+ config.action_mailer.default_url_options = { host: 'localhost:3000' }
In production it should be your app's domain name.
2. Display user session and flashes. For example, in your application layout:
<% if signed_in? %>
Signed in as: <%= current_user.email %>
- <%= link_to 'Sign out', sign_out_path, :method => :delete %>
+ <%= button_to 'Sign out', sign_out_path, method: :delete %>
<% else %>
<%= link_to 'Sign in', sign_in_path %>
<% end %>
<div id="flash">