How to Install Devise
Maya Sheriff
Posted on June 26, 2024
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
💖 💪 🙅 🚩
Maya Sheriff
Posted on June 26, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.