actionview/lib/action_view/helpers/date_helper.rb
# Builds hidden input tag for date part and value.
#  build_hidden(:year, 2008)
#  => "<input type=\"hidden\" id=\"date_year\" name=\"date[year]\" value=\"2008\" autocomplete=\"off\" />\n"
Builds hidden input tag for date part and value.
Builds hidden input tag for date part and value .
def build_hidden(type, value)
          select_options = {
            type: "hidden",
            id: input_id_from_type(type),
            name: input_name_from_type(type),
            value: value,
            autocomplete: "off"
          }.merge!(@html_options.slice(:disabled))
          select_options[:disabled] = "disabled" if @options[:disabled]
          tag(:input, select_options) + "\n".html_safe
        end
def build_hidden ( type , value ) select_options = { type : "hidden" , id : input_id_from_type ( type ) , name : input_name_from_type ( type ) , value : value , autocomplete : "off" } . merge! ( @html_options . slice ( :disabled ) ) select_options [ :disabled ] = "disabled" if @options [ :disabled ] tag ( :input , select_options ) + "\n" . html_safe end
Builds hidden input tag for date part and value.
Builds hidden input tag for date part and value .
type
<not_specific>
value
<not_specific>