Class: Spotlight::AboutPagesController
- Inherits:
-
PagesController
- Object
- ApplicationController
- ApplicationController
- PagesController
- Spotlight::AboutPagesController
- Defined in:
- app/controllers/spotlight/about_pages_controller.rb
Overview
CRUD actions for about pages and contacts
Instance Method Summary collapse
-
#clone ⇒ Object
We’re oddly getting an unknown action error w/o explicitly defining this here.
- #update_contacts ⇒ Object
Methods inherited from PagesController
#create, #destroy, #edit, #index, #new, #preview, #show, #update, #update_all
Methods included from Base
#autocomplete_json_response, #autocomplete_json_response_for_document, #blacklight_config, #controller_tracking_method
Methods included from Config
#exhibit_specific_blacklight_config
Methods included from SearchHelper
#search_service, #search_service_context
Methods included from Concerns::ApplicationController
#enabled_in_spotlight_view_type_configuration?, #field_enabled?
Methods included from Controller
#add_breadcrumb, #blacklight_config, #breadcrumbs, #current_exhibit, #current_masthead, #current_masthead=, #current_site, #default_url_options, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_path, #resource_masthead?, #search_action_url, #search_facet_path, #search_state, #set_exhibit_locale_scope, #set_locale
Instance Method Details
#clone ⇒ Object
We’re oddly getting an unknown action error w/o explicitly defining this here
12 13 14 |
# File 'app/controllers/spotlight/about_pages_controller.rb', line 12 def clone super end |
#update_contacts ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/controllers/spotlight/about_pages_controller.rb', line 16 def update_contacts if @exhibit.update(contact_params) redirect_to exhibit_about_pages_path(@exhibit), notice: t(:'helpers.submit.contact.batch_updated') else render action: 'index' end end |