Class: Designer::EditorController

Inherits:
ApplicationController show all
Defined in:
app/controllers/designer/editor_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

skip_before_action :verify_authenticity_token



8
9
# File 'app/controllers/designer/editor_controller.rb', line 8

def show
end

#updateObject



11
12
13
14
15
16
17
# File 'app/controllers/designer/editor_controller.rb', line 11

def update
  if @resource.update(resource_params.merge(elements: resource_elements))
    render_success
  else
    render_error
  end
end