Skip to content

Instantly share code, notes, and snippets.

@dgoldie
Created March 2, 2011 21:46
Show Gist options
  • Save dgoldie/851806 to your computer and use it in GitHub Desktop.
Save dgoldie/851806 to your computer and use it in GitHub Desktop.
clearance no migration issue
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