RailsCasts Pro episodes are now free!

Learn more or hide this

catullo's Profile

GitHub User: catullo

Comments by catullo

Avatar

... So for using has_secure_password with mongoid, make sure you include ActiveModel::SecurePassword

Avatar

Hi Ryan

does has_secure_password works also with mongoid?
I still get "undefined local variable or method `has_secure_password' for User:Class (NameError)". This with Rails 3.1.0.rc4 and mongoid 2.0.2

As I read somewhere else "Any ActiveModel based model will get this functionality. (ActiveRecord, Mongoid)".

Thanks for the great job!