avatar image
2
before_validate: abort save?
By Created

It seems logical to me that when using a before_validate action, resulting in an error, the object should not be saved. 

However: an error is reported, but still the record is saved. How can i prevent a save?


It seems logical to me that when using a before_validate action, resulting in an error, the object should not be saved. 

However: an error is reported, but still the record is saved. How can i prevent a save?

Answers
Sort by:

Please login to reply to the topic.