method

tag_string

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: TagBuilder
tag_string(name, content = nil, **options, &block) public

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/tag_helper.rb, line 56
        def tag_string(name, content = nil, **options, &block)
          escape = handle_deprecated_escape_options(options)

          content = @view_context.capture(self, &block) if block_given?
          if VOID_ELEMENTS.include?(name) && content.nil?
            "<#{name.to_s.dasherize}#{tag_options(options, escape)}>".html_safe
          else
            content_tag_string(name.to_s.dasherize, content || "", options, escape)
          end
        end
Register or log in to add new notes.