def year_choices(loffset = settings.default_year_loffset, uoffset = settings.default_year_uoffset)
      years = ((Date.today.year + loffset)..(Date.today.year + uoffset)).to_a
      years.zip(years)
    end
def year_choices(loffset = settings.default_year_loffset, uoffset = settings.default_year_uoffset)
      years = ((Date.today.year + loffset)..(Date.today.year + uoffset)).to_a
      years.zip(years)
    end
Returns an array of pairs i.e.
 - [2005, 2005]
 - [2006, 2006]
 - ...
 - [2010, 2010]

 @example

   year_choices # assuming it's now 2010
   # => [[1950, 1950], ..., [2010, 2010]]

   # we can pass in options
   year_choices(0, 6) # like for credit card options
   # => [[2010, 2010], ..., [2016, 2016]]

   # also we can override settings at the app level
   set :default_year_loffset, 0
   set :default_year_uoffset, 6
   year_choices
   # => [[2010, 2010], ..., [2016, 2016]]

 @param [Fixnum] loffset (defaults to -60) The lower offset relative to the current year.
                 If it's 2010 now, passing in -5 here will start the year
                 list at 2005 for example.
 @param [Fixnum] uoffset (defaults to 0) The upper offset relative to the
                 current year. If it's 2010 now, passing in 5 or +5 here
                 will end the year list at 2015 for example.
 @return [Array] the array of year, year pairs.