Gemfile: Add 'devise'.
config/initializers/devise.rb and other one: New.
Generate user with devise.
Make user sign up/sign in.