class User < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable def self.devise_modules [:database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable] end # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me end