select_year (ActionView::Helpers::DateHelper)

    # File lib/action_view/helpers/date_helper.rb, line 220
          def select_year(date, options = {})
            year_options = []
            y = date ? (date.kind_of?(Fixnum) ? (y = (date == 0) ? Date.today.year : date) : date.year) : Date.today.year

            start_year, end_year = (options[:start_year] || y-5), (options[:end_year] || y+5)
            step_val = start_year < end_year ? 1 : -1

            start_year.step(end_year, step_val) do |year|
              year_options << ((date && (date.kind_of?(Fixnum) ? date : date.year) == year) ?
                %(<option value="#{year}" selected="selected">#{year}</option>\n) :
                %(<option value="#{year}">#{year}</option>\n)
              )
            end

            select_html(options[:field_name] || 'year', year_options, options[:prefix], options[:include_blank], options[:discard_type], options[:disabled])
          end