Class: Designer::EditorController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Designer::EditorController
- Defined in:
- app/controllers/designer/editor_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
skip_before_action :verify_authenticity_token.
- #update ⇒ Object
Instance Method Details
#show ⇒ Object
skip_before_action :verify_authenticity_token
8 9 |
# File 'app/controllers/designer/editor_controller.rb', line 8 def show end |
#update ⇒ Object
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 |