Skip to content

Instantly share code, notes, and snippets.

@nitsujw
Created November 21, 2008 18:07
Show Gist options
  • Save nitsujw/27526 to your computer and use it in GitHub Desktop.
Save nitsujw/27526 to your computer and use it in GitHub Desktop.
Updating password a no go
irb(main):004:0> u.update_attributes(:password => "test", :password_confirmation => "test")
~ SELECT `id` FROM `users` WHERE (`login` = 'justin') ORDER BY `id` LIMIT 1
=> true
irb(main):005:0>
Updating other attributes works fine
irb(main):007:0> u.update_attributes(:city => "test")
~ SELECT `id` FROM `users` WHERE (`login` = 'justin') ORDER BY `id` LIMIT 1
~ UPDATE `users` SET `city` = 'test', `updated_at` = '2008-11-21 11:06:40' WHERE (`id` = 1)
=> true
irb(main):008:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment