title: Rails Exception Handling
body: <p>How can I send the error messages that are happening in the model code back to the view. I mean. I have a</p>
  
  <pre><code>begin
         Some code
  rescue
         Exception Handling
  end
  </code></pre>
  
  <p>now error occurs and in the rescue, I would like to send a message back to the controller, so that it ll get displayed in the view. Do I have to use a variable, which has to contain a number of error messages that occurs in one request, concatenate them and send it back to controller, so that I can display it in the view?. Rails already shows some error messages like field can't be blank. I am asking about the other exceptions, which occurs in the functions that are present in the model code.</p>