Created
November 21, 2008 18:07
-
-
Save nitsujw/27526 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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