Select Page

Tutorials Tagged with: validation

Rails: Understanding save vs. save! Difference

Rails: Understanding save vs. save! Difference

When working with Ruby on Rails, you may find yourself needing to save a model instance to the database. Two methods used to accomplish this task are save and save!. While both methods save a record to the database, they behave differently when an error occurs during...