I have having some trouble with my update statement. I have a page that
allows users to change their personal information (name,
password...etc), The update statement seems to execute successfully but
does not update anything. What am I missing?
Per the api doc, ActiveRecord::Base.update
"Updates an object (or multiple objects) and saves it to the database,
if validations pass. The resulting object is returned whether the object
was saved successfully to the database or not."
Are you logging validation errors on this? If not, or just for grins, you
might change the controller to Player.update_attributes! to try to make
the error visible...
Alternatively, does your DB log show any problems?