I am not getting what I am getting wrong :
class Acad< ActiveRecord::Base
attr_accessible :name,:email,:city,:state,:address1,:zip,:password,:password_confirmation has_secure_password
has_many :sporcads
has_many :sports, :through => :sporcads
end
I am getting following error :
syntax error, unexpected tIDENTIFIER, expecting keyword_end
To expand on mu’s comment, the
attr_accessiblelist is balking on the flag for:password_confirmation.has_secure_passwordis its own validation on the model and should be on its own line (here is an example).So this is what it might look like: