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
1.Login in to ralis console
$ sudo bundle exec rails console production
2.Then update the administrator's password
irb(main):001:0> user = User.where("username = 'root'")
irb(main):002:0> u = user.first
irb(main):003:0> u.password="root2014@Robin"
=> "root2014@Robin"
irb(main):004:0> u.password_confirmation="root2014@Robin"
=> "root2014@Robin"
irb(main):005:0> u.save
=> true
irb(main):006:0> exit
3.Refresh the login page, use the new password to login, enjoy!
Good Luck!