User Model


#1

I got # 1 to work with rails generate model User....... Can't get through #2.... What do I do.? Here is a copy of directions.

In app/models/user.rb, add a method named has_secure_password.

class User < ActiveRecord::Base

has_secure_password

end


#2

That should work, but try this code:

class User < ActiveRecord::Base
has_secure_password
end


#3

This is what finally worked for me.
Class User < ActiveRecord: :Base

has_secure_password

end
I'm not sure why there had to be blank lines.


#4

my instruction area is red why ?


#5

i have tried 20 times now with this command.
class User < ActiveRecord: :Base has_secure_password end

it wont work