What Is The Difference Between “Save” And “Save!”?

Technology CommunityCategory: Ruby on RailsWhat Is The Difference Between “Save” And “Save!”?
VietMX Staff asked 3 years ago
  • Save! performs all validations and callbacks. If any validation returns false, save! throws an error and canceles the save.
  • Save does not throw any error in the case above, but canceles the save. Also, the validators can be bypassed.