Module | ActionView::Helpers::TagHelper |
In: |
vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb
|
This is poor man’s Builder for the rare cases where you need to programmatically make tags but can’t use Builder.
Examples:
# File vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb, line 21 21: def content_tag(name, content, options = {}) 22: "<#{name}#{tag_options(options)}>#{content}</#{name}>" 23: end