require 'date'
start = Date.parse('2012-09-02')
finish = Date.parse('2013-11-02')
date_months = (start..finish).map {|d| Date.new(d.year, d.month) }.uniq
date_months.map {|d| d.strftime "%m/%Y" }
["09/2012", "10/2012", "11/2012", "12/2012", "01/2013", "02/2013", "03/2013", "04/2013", "05/2013", "06/2013", "07/2013", "08/2013", "09/2013", "10/2013", "11/2013"]
var ready;
ready = function() {
//Ваша функция
};
$(document).ready(ready);
$(document).on('page:load', ready);