title: Iterating over days in Ruby
body: <p>I've tried the following:</p>
  
  <pre><code>def next_seven_days
    today = Date.today
    (today .. today + 7).each { |date| puts date } 
  end 
  </code></pre>
  
  <p>But this just gives me the first and last date. I can't figure out how to get all the ones in between.</p>
  
  <p>I was trying to follow the example here: <a href="http://www.whynotwiki.com/Ruby_/_Dates_and_times" rel="noreferrer">http://www.whynotwiki.com/Ruby_/_Dates_and_times</a></p>