How do you change a user password in the Ruby console?
An easy way to set a user password is
rake admin:create
You have the option of making them an admin. You can look at the source for that take task to see how to do it in ruby.
user.password = password
The code looks like password is plain text.
Does the assignment set the hash?
Yes when we save passwords we only save the hash and salt.