Class: PageComponentsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PageComponentsController
- Defined in:
- app/controllers/page_components_controller.rb
Instance Method Summary (collapse)
Methods inherited from ApplicationController
Instance Method Details
- (Object) edit
5 6 |
# File 'app/controllers/page_components_controller.rb', line 5 def edit end |
- (Object) update
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/page_components_controller.rb', line 8 def update _updated = @page_component.update_attributes(params[:page_component]) respond_to do |format| format.html { if _updated redirect_to @page, :notice => t(:page_component_successfully_updated) else render :edit end } format.js { } end end |