Class: Spotlight::ExhibitsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Spotlight::ExhibitsController
- Includes:
- Blacklight::SolrHelper
- Defined in:
- app/controllers/spotlight/exhibits_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#edit ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/spotlight/exhibits_controller.rb', line 7 def edit @exhibit.title, @exhibit t(:'spotlight.administration.sidebar.header'), exhibit_dashboard_path(@exhibit) t(:'spotlight.administration.sidebar.settings'), edit_exhibit_path(@exhibit) @exhibit.contact_emails << "" unless @exhibit.contact_emails.present? end |
#update ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/controllers/spotlight/exhibits_controller.rb', line 14 def update if @exhibit.update(exhibit_params) redirect_to main_app.root_path, notice: "The exhibit was saved." else render action: :edit end end |