Class: Adminpanel::PagesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Adminpanel::PagesController
- Defined in:
- app/controllers/adminpanel/pages_controller.rb
Instance Method Summary collapse
Methods included from GalleryActions
#add_to_gallery, #remove_image
Methods included from FacebookActions
#fb_choose_page, #fb_publish, #fb_save_token
Methods included from SortableActions
Methods included from RestActions
#create, #destroy, #index, #new
Methods included from SessionsHelper
#current_user, #current_user=, #sign_in, #sign_out, #signed_in?
Instance Method Details
#edit ⇒ Object
8 9 10 11 |
# File 'app/controllers/adminpanel/pages_controller.rb', line 8 def edit params[:skip_breadcrumb] = true super end |
#show ⇒ Object
5 6 |
# File 'app/controllers/adminpanel/pages_controller.rb', line 5 def show end |
#update ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/controllers/adminpanel/pages_controller.rb', line 13 def update if @resource_instance.update(page_params) redirect_to page_path(@resource_instance) else params[:skip_breadcrumb] = true render 'adminpanel/templates/edit' end end |