title: Rails: How to raise an error in a before_update method to the user
body: <p>I have searched a lot for this issue with no luck...</p>
  
  <p>I have a model with a before_update method, I can't replace it with a validator because the actual method checks the existance of many things and update many others. My question is, How can I raise an error if a process from the before_update method fails? Something like:</p>
  
  <pre><code>def update_status
      if !(many verifications and updates)
         self.errors[:base] &lt;&lt; "Could not update if ...."
      end
  end
  </code></pre>
  
  <p>With the abobe code I get the update notice from the controller after the page loads, but I want to show the error from the before_update method. How can I show the error to the user?</p>
  
  <p>Thanks a lot!!</p>