class <%= @model.classify %> < ActiveRecord::Base authenticates_with_sorcery! attr_accessible :username, :email, :password, :password_confirmation validates_length_of :password, :minimum => 5, :message => "password must be at least 5 characters long", :if => :password validates_confirmation_of :password, :message => "should match confirmation", :if => :password validates_uniqueness_of :username, :email end