Class: Spotlight::AppearancesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Spotlight::AppearancesController
- Defined in:
- app/controllers/spotlight/appearances_controller.rb
Instance Method Summary collapse
Methods included from Controller
#blacklight_config, #current_exhibit, #current_masthead, #current_masthead=, #default_masthead?, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_url, #search_action_url, #search_facet_url
Methods included from Config
#exhibit_specific_blacklight_config
Instance Method Details
#edit ⇒ Object
14 15 16 17 18 |
# File 'app/controllers/spotlight/appearances_controller.rb', line 14 def edit t(:'spotlight.exhibits.breadcrumb', title: @exhibit.title), @exhibit t(:'spotlight.administration.sidebar.header'), exhibit_dashboard_path(@exhibit) t(:'spotlight.administration.sidebar.appearance'), edit_exhibit_appearance_path(@exhibit) end |
#update ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/controllers/spotlight/appearances_controller.rb', line 6 def update if @appearance.update(appearance_params) redirect_to edit_exhibit_appearance_path(@exhibit), notice: t(:'helpers.submit.spotlight_default.updated', model: @appearance.class.model_name.human.downcase) else render 'edit' end end |