title: Cannot access local method variable in pry
body: <p>I have the following method:</p>
  
  <pre><code>  def update
      loan = Loan.find(params[:id])
      pry
      respond_with loan.update(loan_params) 
    end
  </code></pre>
  
  <p>So I would expect that when I get to pry in the console I should be able to type loan and get the object but instead I get "undefined local variable or method 'loan'", am I doing something wrong?</p>