Use Devise for Users
Install
rails generate devise:install
Change :delete to :getin devise file
# config/initializers/devise.rb, Line 269
config.sign_out_via = :get
Set a root route in routes
# config/routes.rb
root "boards#index"
Use our new generator supplied by the gem to create the User model and routes
rails generate devise user
Then Migrate
rake db:migrate
Top comments (0)