method
name_and_id_from_options
name_and_id_from_options(options, type)
private
Hide source
# File actionpack/lib/action_view/helpers/date_helper.rb, line 334 def name_and_id_from_options(options, type) options[:name] = (options[:prefix] || DEFAULT_PREFIX) + (options[:discard_type] ? '' : "[#{type}]") options[:id] = options[:name].gsub(/([\[\(])|(\]\[)/, '_').gsub(/[\]\)]/, '') end


