Flowdock
method

add_default_name_and_id

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: Base
add_default_name_and_id(options) private

No documentation

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

Hide source
# File actionview/lib/action_view/helpers/tags/base.rb, line 81
        def add_default_name_and_id(options)
          index = name_and_id_index(options)
          options["name"] = options.fetch("name"){ tag_name(options["multiple"], index) }
          options["id"] = options.fetch("id"){ tag_id(index) }
          if namespace = options.delete("namespace")
            options['id'] = options['id'] ? "#{namespace}_#{options['id']}" : namespace
          end
        end
Register or log in to add new notes.