--One of the gems (libraries) that can easily implement the authentication function in applications created with Rails. --You can create login functions such as login and sign-up.
Gemfile
gem 'devise'
Terminal
$ bundle install
Terminal
$ rails g devise:install
Newly created file
config/initializers/devise.rb
config/locales/devise.en.yml
Terminal
$ rails g devise user
Newly created file
app/models/user.rb
db/migrate/20XXXXXXXXXXXX_devise_create_users.rb
test/fixtures/users.yml
test/models/user_test.rb
Terminal
$ rails g devise:views
Newly created file
app/views/devise #Various view files in the following directories
This completes the devise installation
Recommended Posts