method
name_and_id_from_options
v1.2.6 -
Show latest stable
- Class:
ActionView::Helpers::DateHelper
name_and_id_from_options(options, type)private
No documentation available.
# 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