title: log_error method in rails 3
body: <p>I'm switching my application to Rails 3 and for the moment I discover some problems with the log_error method. In the doc ( <a href="http://apidock.com/rails/ActionController/Rescue/log_error" rel="nofollow">http://apidock.com/rails/ActionController/Rescue/log_error</a> ) they say that the last version is in 2.3.8 so in this case it is normal that it is not working. </p>
  
  <p>But when I check then the alternatives, they propose <a href="http://apidock.com/rails/ActionDispatch/ShowExceptions/log_error" rel="nofollow">http://apidock.com/rails/ActionDispatch/ShowExceptions/log_error</a> which is supported in rails 3. But still he's telling me "undefined method log_error". </p>
  
  <p>I use it in my application controller as following: </p>
  
  <pre class="lang-rb prettyprint-override"><code>def render_not_found(exception = nil)
    log_error(exception) if exception
    #notify_hoptoad(exception)
    render :template =&gt; "/help/404.html.erb", :status =&gt; 404
  end
  
  def render_error(exception)
    log_error(exception)
    notify_hoptoad(exception)
    render :template =&gt; "/help/500.html.erb", :status =&gt; 500
  end
  </code></pre>
  
  <p>How can I use the method log_error in Rails 3 then? Or is there an alternative for this method?</p>