title: Working with distance_of_time_in_words in Rails 3
body: <p>I am trying to make use of Rail's <code>distance_of_time_in_words</code> helper but I'm getting an Undefined Method Error for some reason. Here's my code:</p>
  
  <pre><code>def confirm_has_quota
    last_upload = current_user.photos.last.created_at
    remaining_time = distance_of_time_in_words(1.day.ago, last_upload)
    if last_upload &lt; 1.day.ago
      return true
    else
      flash[:error] = "You are allowed 1 upload per day. Please try again in" + remaining_time + "."
      redirect_to(:back)
    end
  end
  </code></pre>
  
  <p>Which gives me "undefined method `distance_of_time_in_words'". Anyone see what I'm doing wrong here? Thanks.</p>