Re: [Rails] How to change the value of User attribute

2012-01-17 Thread Peter Vandenabeele
On Tue, Jan 17, 2012 at 9:12 AM, Daisy Di wrote: > Dear All > i follow the instruction of Ruby on rails 3 tutorial, now i want to > update the email of the User, > user =User.find(1) > user.update_attributes(:email=>"t...@gmail.com") > > but the save failed, error message is "password can not b

[Rails] How to change the value of User attribute

2012-01-17 Thread Daisy Di
Dear All i follow the instruction of Ruby on rails 3 tutorial, now i want to update the email of the User, user =User.find(1) user.update_attributes(:email=>"t...@gmail.com") but the save failed, error message is "password can not be blank", so i try this one user.update_attributes(:email=>"t...