method
name_and_id_from_options
v2.0.3 -
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 567
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