Update method problem in rails 2.2

Hi Rails passengers

While doing update i am facing new type of error in rails 2.2.2

Its having params eg) params[:me][:like]

while doing @me.update_attribute(params[:me])
i am getting updated successfully but its not done actually… Not
any errors in log tooo

How to fix this

Thanks in Advance

if you want to update @me with multiple values from params[:me], you
want to be using update_attributes, not the singular version.
See http://apidock.com/rails/ActiveRecord/Base/update_attribute and
http://apidock.com/rails/ActiveRecord/Base/update_attributes for the


2009/3/18 senthil raja [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs