how to raise exception with save!

I’m a noob but I checked http://api.rubyonrails.org/ exceptions and ActiveRecordError — generic error class and superclass of all other errors raised by Active Record might help you But looking at the code for save (create_or_update), it doesn;t seem to raise any exceptions. Hope this helps