title: RoR, Can't iterate from DateTime/TimeWithZone
body: <p>I have a simple task where I want to take a starting date and an ending date and loop over the days/dates.  This code is being used in my db:seed rake task.  Currently, my code has gone through the following attempts.</p>
  
  <pre><code>(someModel.start_date.to_datetime..someModel.end_date.to_datetime).each { 
      |x| puts x 
  }
   ......
  (someModel.start_date...someModel.end_date).each { |x| puts x }
  </code></pre>
  
  <p>In each case, I get an error like this.</p>
  
  <pre><code>can't iterate from ActiveSupport::TimeWithZone
  or 
  can't iterate from DateTime
  </code></pre>
  
  <p>If anyone has any clue on how to iterate over a range of DateTimes I'd be greatly appreciative.</p>