This content originally appeared on DEV Community and was authored by Maya Sheriff
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
This content originally appeared on DEV Community and was authored by Maya Sheriff
Maya Sheriff | Sciencx (2024-06-26T16:15:20+00:00) How to Install Devise. Retrieved from https://www.scien.cx/2024/06/26/how-to-install-devise/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.