Created
March 2, 2011 21:46
-
-
Save dgoldie/851806 to your computer and use it in GitHub Desktop.
clearance no migration issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doug@zeus ~/code/spikes/vern | |
$ rails g clearance:install | |
identical config/initializers/clearance.rb | |
insert app/controllers/application_controller.rb | |
insert app/models/user.rb | |
identical spec/factories/clearance.rb | |
******************************************************************************* | |
Next steps: | |
1. Configure the mailer to create full URLs in emails: | |
config.action_mailer.default_url_options = { :host => 'localhost:3000' } | |
In production it should be your app's domain name. | |
2. Migrate: | |
rake db:migrate | |
3. Display flashes. For example, in your application layout: | |
<% flash.each do |key, value| -%> | |
<div class="flash <%= key %>"><%=h value %></div> | |
<% end -%> | |
******************************************************************************* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment