actionview/lib/action_view/helpers/date_helper.rb
# Returns the name attribute for the input tag.
#  => post[written_on(1i)]
Returns the name attribute for the input tag.
Returns the name attribute for the input tag .
def input_name_from_type(type)
          prefix = @options[:prefix] || ActionView::Helpers::DateTimeSelector::DEFAULT_PREFIX
          prefix += "[#{@options[:index]}]" if @options.has_key?(:index)
          field_name = @options[:field_name] || type.to_s
          if @options[:include_position]
            field_name += "(#{ActionView::Helpers::DateTimeSelector::POSITION[type]}i)"
          end
          @options[:discard_type] ? prefix : "#{prefix}[#{field_name}]"
        end
def input_name_from_type ( type ) prefix = @options [ :prefix ] || ActionView :: Helpers :: DateTimeSelector :: DEFAULT_PREFIX prefix += "[#{@options[:index]}]" if @options . has_key? ( :index ) field_name = @options [ :field_name ] || type . to_s if @options [ :include_position ] field_name += "(#{ActionView::Helpers::DateTimeSelector::POSITION[type]}i)" end @options [ :discard_type ] ? prefix : "#{prefix}[#{field_name}]" end
Returns the name attribute for the input tag.
Returns the name attribute for the input tag .
type
<not_specific>