Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment