title: Get yesterday's date
body: <p>This may be an obvious question but im new to ruby and I've spent ages trying to get yesterdays date for a cucumber test that checks a url that includes yesterday's date. for example:
  <a href="http://www.blah.co.uk/blah/blah/schedule/2011-11-28" rel="nofollow">http://www.blah.co.uk/blah/blah/schedule/2011-11-28</a></p>
  
  <p>I've created the following within my helper methods:</p>
  
  <pre><code>def Helper.get_date
    Time.now.strftime('%Y-%m-%d') / 1.day
  end
  </code></pre>
  
  <p>But it doesn’t like the <code>/1.day</code> or <code>– 1.day</code> or <code>– 86400</code> (seconds).</p>