The document introduces Devise, a Ruby on Rails authentication solution that handles common tasks like user signup, login, password recovery, and account confirmation out of the box. It provides instructions for installing and configuring Devise in a new Rails application, including generating a User model and customizing Devise views. Key features of Devise like authentication helpers and configuration options are also outlined.
13. Create a User model $>rails generate devise User $>rake db:migrate
14. Test it $>rails server $>open http://localhost:3000/users/sign_up $>open http://localhost:3000/users/sign_in $>open http://localhost:3000/users/sign_out
18. User model class User < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authenticatable, :confirmable, :lockable and :timeoutable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me end