Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created April 4, 2019 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chelseatroy/b5b41889ea037feddbada8381b762ed1 to your computer and use it in GitHub Desktop.
Save chelseatroy/b5b41889ea037feddbada8381b762ed1 to your computer and use it in GitHub Desktop.
Devise Setup Example
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