title: rescue_from doesn't catch an error
body: <pre><code>class MyController &lt; ApplicationController
    before_action :set_data, only: [:show, :edit, :update, :destroy]
    rescue_from ActiveRecord::RecordNotFound, with: :invalid_data
    respond_to :html
  
    def show
     respond_with(@item)
    end
  
    private
  
    def set_data
      @item = Item.find params[:id]
    end
  
  
    def invalid_data
      logger.log "Error, id: #{params[:id]}"
      redirect_to some_url, error: 'Error123'
    end
  
  end
  </code></pre>
  
  <p>Still, when I go to <code>my/123</code> or <code>my/123fdsfds</code> or <code>my/fdsfds</code>, I get a standard "error" screen:</p>
  
  <pre><code>ArgumentError in MyController#show
  comparison of String with 0 failed
  
      logger.log "Error, id: #{params[:id]}"
      redirect_to some_url, error: 'Error123'
    end
  end 
  </code></pre>
  
  <p>and I don't get redirected. How come?</p>