Class: Katalyst::Content::TablesController

Inherits:
ItemsController show all
Defined in:
app/controllers/katalyst/content/tables_controller.rb

Instance Attribute Summary

Attributes inherited from ItemsController

#container, #editor, #item

Instance Method Summary collapse

Methods inherited from ItemsController

#edit, #new

Instance Method Details

#updateObject 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