In my rails app I have a model with a start_date and end_date. If the user selects Jan 1, 2010 as the start_date and Jan 5, 2010 as the end_date, I want there to be 5 instan
why don't you just create a method into your model like this
def self.create_dates(params) [...] end
containing this logic (basically your loop?)