Good notes posted by andrewmcdonough
RSS feed
andrewmcdonough -
June 17, 2009
3 thanks
Skipping validation
Unlike the save method, you can’t pass false to update_attributes to tell it to skip validation. Should you wish to do this (consider carefully if this is wise) update the attributes explicitly then call save and pass false:
@model_name.attributes = params[:model_name] @model_name.save false