Class: Scrivito::ChildListTag::ObjTag
- Inherits:
-
Struct
- Object
- Struct
- Scrivito::ChildListTag::ObjTag
- Defined in:
- app/cms/scrivito/child_list_tag.rb
Overview
This is a helper class for ScrivitoHelper#scrivito_tag_list.
Instance Method Summary collapse
-
#tag(tag_name, html_options = {}, &block) ⇒ String
Renders HTML for the corresponding child with in-place editing enabled.
Instance Method Details
#tag(tag_name, html_options = {}, &block) ⇒ String
Note:
This method can be called only once per child.
Renders HTML for the corresponding child with in-place editing enabled.
86 87 88 89 90 91 |
# File 'app/cms/scrivito/child_list_tag.rb', line 86 def tag(tag_name, = {}, &block) raise '"list.tag" can only be called once per iteration!' if @rendered @tag_name = tag_name @rendered = render(, &block) nil end |