Flowdock
method

tag_option

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActionView::Helpers::TagHelper
tag_option(key, value, escape) 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/tag_helper.rb, line 178
        def tag_option(key, value, escape)
          if value.is_a?(Array)
            value = escape ? safe_join(value, " ") : value.join(" ")
          else
            value = escape ? ERB::Util.unwrapped_html_escape(value) : value.to_s
          end
          %(#{key}="#{value.gsub('"'.freeze, '"'.freeze)}")
        end
Register or log in to add new notes.