Created
April 4, 2019 19:46
-
-
Save chelseatroy/b5b41889ea037feddbada8381b762ed1 to your computer and use it in GitHub Desktop.
Devise Setup Example
This file contains 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
echo "gem 'devise'" >> Gemfile # Or edit Gemfile and add line: gem 'devise' | |
bundle install # Fetch and install the gems | |
rails generate devise:install # Creates config file, etc. | |
rails generate devise user # Create model class, routes, etc. | |
rake db:migrate # Create user table | |
rails generate devise:views users # Creates (minimal) views | |
# Code sample courtesy of launch school: https://launchschool.com/blog/how-to-use-devise-in-rails-for-authentication |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment