title: Ruby - Get range of month between two dates
body: <p>I generated a table called <code>DimensionDate</code> , which contains all dates between 2011,12,31 and 2032,1,1 .</p>
  
  <p>Now, I would like to know the absolute range of a month between these two dates, for each date.</p>
  
  <p>For example :</p>
  
  <p>2012-01-01 is the number 1 month</p>
  
  <p>2012-02-01 is the number 2 month</p>
  
  <p>2013-01-01 is the number 13 month</p>
  
  <p>2013-02-01 is the number 14 month</p>
  
  <p>2014-01-01 is the number 25 month</p>
  
  <p>2014-02-01 is the number 26 month</p>
  
  <p>etc...</p>
  
  <p>How could I do that ? Any Idea ?
  Thanks for your help</p>