I want to update multiple rows using ActiveRecord#update, especially
because params for the table contains just the right data structure
for the update method (an array of attribute/value hashes, one per
record). But the Rails docs say about this method "... the resulting
object is returned whether the object was saved successfully to the
database or not."
So how does one test if the update failed?
Thanks. --David.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---