Class: Spotlight::AboutPagesController

Inherits:
PagesController show all
Defined in:
app/controllers/spotlight/about_pages_controller.rb

Instance Method Summary collapse

Methods inherited from PagesController

#_prefixes, #create, #destroy, #edit, #index, #new, #preview, #show, #undo_link, #update, #update_all

Methods included from Base

#autocomplete_json_response, #blacklight_config

Methods included from Config

#exhibit_specific_blacklight_config

Methods included from Controller

#blacklight_config, #current_exhibit, #exhibit_search_action_url, #exhibit_search_facet_url, #search_action_url, #search_facet_url

Instance Method Details

#update_contactsObject



7
8
9
10
11
12
13
# File 'app/controllers/spotlight/about_pages_controller.rb', line 7

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