search for: saveorupdate

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

2006 Apr 25
14
validate_on_update with a save()
I''ve got a form with inputs like user[first_name], user[last_name], etc. When editing the user instead of creating a new one I include a user[id]. I then try and save the object using: user = User.new(params[:user]) user.save() I would *expect* that since I included the user[id] it should do an update and should call validate_on_update. But this doesn''t appear to be the