I am trying to set password with bcrypt-ruby and mongoid but whatever I
do I get “Password digest can’t be blank”.
field :first_name, type: String, default: ‘’
field :last_name, type: String, default: ‘’
field :password_digest, type: String
attr_accessible :name, :password, :password_confirmation
One possible problem is that I have my own form system and I always use
name “record” for table name (instead of user in the case).