Take the tour ×  While running an app how do you select a user
by email address and then set the password manually within rails
console for Devise?  Also, where would I go to review
documentation to cover more details in this regard to
manipulation of accounts while using Devise?  share|improve this
question Valk: where() isn't available until rails 3. But, the
way you did it is fine too. –  hellion Aug 25 '12 at 14:57 add
comment  3 Answers  up vote 13 down vote accepted  It's more or
less as you described :-)  # use mongoid class User   include
Mongoid::Document  # then user = User.where(:email =>
email).first  if user   user.password = new_password
user.password_confirmation = new_password share|improve this
answer Ah, hmm. That would work for a standard user, but in this
case it's from the admin_users table. What's the appropriate
tweak to pull from this table vs the users? Simply setting it to
user = AdminUser... did not work. –  ylluminate Nov 29 '11 at
6:06 Umm, I don't know, query AdminUser model? A