actionview/lib/action_view/helpers/date_helper.rb
# Returns the id attribute for the input tag.
#  => "post_written_on_1i"
Returns the id attribute for the input tag.
Returns the id attribute for the input tag .
def input_id_from_type(type)
          id = input_name_from_type(type).gsub(/([\[(])|(\]\[)/, "_").gsub(/[\])]/, "")
          id = @options[:namespace] + "_" + id if @options[:namespace]
          id
        end
def input_id_from_type ( type ) id = input_name_from_type ( type ) . gsub ( / ([ \[ (])|( \] \[ ) / , "_" ) . gsub ( / [ \] )] / , "" ) id = @options [ :namespace ] + "_" + id if @options [ :namespace ] id end
Returns the id attribute for the input tag.
Returns the id attribute for the input tag .
type
<not_specific>