Friday, September 21, 2012

ruby - Devise password reset from Rails console - Stack Overflow

ruby - Devise password reset from Rails console - Stack Overflow: "# then
user = User.where(:email => email).first

if user
  user.password = new_password
  user.password_confirmation = new_password
  user.save
end"

'via Blog this'