Class: MetaTags::ContentTag
- Defined in:
- lib/meta_tags-rails/content_tag.rb
Overview
Represents an HTML meta tag with content (<tag></tag>). Content should be passed as a ‘:content` attribute.
Instance Attribute Summary
Attributes inherited from Tag
Instance Method Summary collapse
-
#render(view) ⇒ String
Render tag into a Rails view.
Methods inherited from Tag
Constructor Details
This class inherits a constructor from MetaTags::Tag
Instance Method Details
#render(view) ⇒ String
Render tag into a Rails view.
10 11 12 |
# File 'lib/meta_tags-rails/content_tag.rb', line 10 def render(view) view.content_tag(name, attributes[:content], attributes.except(:content)) end |