title: Rails how to create an array of months based on a range of dates
body: <p>Example I have:</p>
  
  <pre><code>  range = start.to_date..(end.to_date + 1.day)
  </code></pre>
  
  <p>end and start are dates.</p>
  
  <p>How do I create a month array based on this range?</p>
  
  <p>Example:</p>
  
  <p>I have the dates 23/1/2012 and 15/3/2012</p>
  
  <p>The months are Januar, Februar and Marts.</p>
  
  <p>I want to get a array like <code>["1/1/2012", "1/2/2012", "1/3/2012"]</code></p>
  
  <p>and if the range was betweeen 25/6/2012 to the 10/10/2012</p>
  
  <p>the array would be: <code>["1/6/2012", "1/7/2012", "1/8/2012", "1/9/2012", "1/10/2012"]</code></p>