title: Ruby on Rails: Create a flat array of dates using start and end date ranges
body: <p>I want to get a flat array of dates in a date range for Items with many Bookings. A Booking has <code>:start_date</code> and <code>:end_date</code>.</p>
  
  <p>example, Item has these bookings: </p>
  
  <pre><code>Booking A: 10/1/17 to 10/3/17
  Booking B: 11/2/17 to 11/4/17
  </code></pre>
  
  <p>I tried using pluck. <code>Item.bookings.pluck[:start_date, :end_date]</code> and it gives me an array that looks like this <code>[["10,01,17", "10,03,17"], ["11,02,17" , "11,04,17" ]]</code></p>
  
  <p>What I need is a flat array with the date ranges like this <code>["10,01,17", "10/02/17", "10,03,17", "11,02,17" , "11,03,17", "11/04/17"]</code></p>