Flowdock
method

add_default_name_and_id_for_value

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActionView::Helpers::InstanceTag
add_default_name_and_id_for_value(tag_value, options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_view/helpers/form_helper.rb, line 909
        def add_default_name_and_id_for_value(tag_value, options)
          unless tag_value.nil?
            pretty_tag_value = tag_value.to_s.gsub(/\s/, "_").gsub(/\W/, "").downcase
            specified_id = options["id"]
            add_default_name_and_id(options)
            options["id"] += "_#{pretty_tag_value}" unless specified_id
          else
            add_default_name_and_id(options)
          end
        end
Register or log in to add new notes.