Flowdock
method

select_month

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionView::Helpers::DateTimeSelector

Method not available on this version

This method is only available on newer versions. The first available version of the method is shown here.

select_month() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_view/helpers/date_helper.rb, line 631
      def select_month
        if @options[:use_hidden] || @options[:discard_month]
          build_hidden(:month, month)
        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
Register or log in to add new notes.