module

ActionView::Helpers::TagHelper

Provides methods to generate HTML tags programmatically when you can’t use a Builder. By default, they output XHTML compliant tags.

Included modules

  • ActionView::Helpers::CaptureHelper
  • ActionView::Helpers::OutputSafetyHelper

Constants

BOOLEAN_ATTRIBUTES = %w(disabled readonly multiple checked autobuffer\nautoplay controls loop selected hidden scoped async\ndefer reversed ismap seamless muted required\nautofocus novalidate formnovalidate open pubdate\nitemscope allowfullscreen default inert sortable\ntruespeed typemustmatch).to_set

PRE_CONTENT_STRINGS = {\n:textarea => "\\n"\n}

TAG_PREFIXES = ['aria', 'data', :aria, :data].to_set

Files

  • actionview/lib/action_view/helpers/tag_helper.rb