Simple ActiveRecord not saving

No need for that construct; the save! method will raise an error if the save fails. Replace the above with:

   alert.save!