search for: updatestuff

Displaying 1 result from an estimated 1 matches for "updatestuff".

2009 Jan 06
2
Update_attributes on multiple models, revert back on error
Hi, I have one method, ''updateStuff'', that will call ''update_attributes'' on 3 different models in the DB..... How can I account for validation to revert back all updates if one of the models is not valid? I''ve looked into Model.valid? which doesn''t seem to work for me .. Any idea? Tha...