826
827
828
829
830
831
832
833
834
835
836
837
838
|
# File 'actionview/lib/action_view/helpers/date_helper.rb', line 826
def select_month
if @options[:use_hidden] || @options[:discard_month]
build_hidden(:month, month || 1)
else
month_options = []
1.upto(12) do |month_number|
options = { value: month_number }
options[:selected] = "selected" if month == month_number
month_options << content_tag("option", month_name(month_number), options) + "\n"
end
build_select(:month, month_options.join)
end
end
|