Flowdock
method

tag_name

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Base
tag_name(multiple = false, index = nil) 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 107
          def tag_name(multiple = false, index = nil)
            # a little duplication to construct fewer strings
            case
            when @object_name.empty?
              "#{sanitized_method_name}#{multiple ? "[]" : ""}"
            when index
              "#{@object_name}[#{index}][#{sanitized_method_name}]#{multiple ? "[]" : ""}"
            else
              "#{@object_name}[#{sanitized_method_name}]#{multiple ? "[]" : ""}"
            end
          end
Register or log in to add new notes.