Module: ActionView::Helpers::TagHelper
- Extended by:
- ActiveSupport::Concern
- Includes:
- CaptureHelper, OutputSafetyHelper
- Included in:
- ActionView::Helpers, AssetTagHelper
- Defined in:
- lib/amelia/action_view/helpers/tag_helper.rb
Instance Method Summary collapse
Instance Method Details
#content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, translate = true, &block) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/amelia/action_view/helpers/tag_helper.rb', line 11 def content_tag(name, = nil, = nil, escape = true, translate = true , &block) if block_given? = if .is_a?(Hash) content_tag_string(name, capture(&block), , escape) else content_tag_string(name, , , escape, translate) end end |