Flowdock
method

tag_name

Importance_0
v5.2.3 - Show latest stable - 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 108
          def tag_name(multiple = false, index = nil)
            # a little duplication to construct less strings
            case
            when @object_name.empty?
              "#{sanitized_method_name}#{"[]" if multiple}"
            when index
              "#{@object_name}[#{index}][#{sanitized_method_name}]#{"[]" if multiple}"
            else
              "#{@object_name}[#{sanitized_method_name}]#{"[]" if multiple}"
            end
          end
Register or log in to add new notes.