Displaying 1 result from an estimated 1 matches for "phone_alt".
Did you mean:
phone_alert
2006 Dec 08
9
How to update partial attributes of a object from a form?
...(:city, params[:user][:city])
@user.update_attribute(:state, params[:user][:state])
@user.update_attribute(:zip_code, params[:user][:zip_code])
@user.update_attribute(:country, params[:user][:country])
@user.update_attribute(:phone, params[:user][:phone])
@user.update_attribute(:phone_alt, params[:user][:phone_alt])
which seem like a mess.
any other solution?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to th...