title: Find Model Not Found When ActiveRecordNotFound Raised
body: <p>I have a controller that calls <code>.find</code> on multiple ActiveRecord Models. I am using the rescue_from method to catch errors raised when records are not found. However, I am not able to find the type of the records that are not found. So suppose my controller looks like this: </p>
  
  <pre><code>class AccountController &lt; ApplicationController
  
    rescue_from ActiveRecord::RecordNotFound, :with =&gt; :handler
  
    def find_user
      User.find(params[:user_id])
    end
  
    def find_post 
      Post.find(params[:post_id])
    end
  
    def handler 
      flash[:error] = "{model} not found"
    end
  end
  </code></pre>
  
  <p>The problem is I need to tell the user which record was not found, which would me {model} in the code above. Is there a clean way to do this?</p>