Class: Katalyst::Content::Editor::Container
- Defined in:
- app/helpers/katalyst/content/editor/container.rb
Constant Summary collapse
- ACTIONS =
<<~ACTIONS.gsub(/\s+/, " ").freeze submit->#{CONTAINER_CONTROLLER}#reindex content:drop->#{CONTAINER_CONTROLLER}#drop content:reindex->#{CONTAINER_CONTROLLER}#reindex content:reset->#{CONTAINER_CONTROLLER}#reset ACTIONS
Constants inherited from Base
Base::CONTAINER_CONTROLLER, Base::ITEM_CONTROLLER, Base::LIST_CONTROLLER, Base::NEW_ITEM_CONTROLLER, Base::STATUS_BAR_CONTROLLER, Base::TURBO_FRAME
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#attributes_scope, #container_form_id, #initialize
Constructor Details
This class inherits a constructor from Katalyst::Content::Editor::Base
Instance Method Details
#build(options) ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/helpers/katalyst/content/editor/container.rb', line 14 def build() form_with(model: container, **(id: container_form_id, **)) do |form| concat hidden_input concat errors concat(capture { yield form }) end end |