title: Get extra information from ActiveRecord::RecordNotFound in Rails
body: <p>I handle RecordNotFound error in my <code>application_controller.rb</code> as follow:</p>
  
  <pre><code>  rescue_from ActiveRecord::RecordNotFound, :with =&gt; :record_not_found
  
    private 
  
     def record_not_found
       flash[:error] = "Oops, we cannot find this record"
       redirect_to :back
     end
  </code></pre>
  
  <p>But I would like to get more information, such as class/table name of which record was not found.
  How should I go about it?</p>
  
  <p>Thank you.</p>