Class: Katalyst::Content::TablesController
- Inherits:
-
ItemsController
- Object
- ItemsController
- Katalyst::Content::TablesController
- Defined in:
- app/controllers/katalyst/content/tables_controller.rb
Instance Attribute Summary
Attributes inherited from ItemsController
Instance Method Summary collapse
- #update ⇒ Object (also: #create)
Methods inherited from ItemsController
Instance Method Details
#update ⇒ Object Also known as: create
6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/katalyst/content/tables_controller.rb', line 6 def update item.attributes = item_params if item.valid? render :update, locals: { item_editor: } else render :update, locals: { item_editor: }, status: :unprocessable_entity end end |