Method: Spotlight::SearchesController#update
- Defined in:
- app/controllers/spotlight/searches_controller.rb
#update ⇒ Object
48 49 50 51 52 53 54 |
# File 'app/controllers/spotlight/searches_controller.rb', line 48 def update if @search.update search_params redirect_to exhibit_searches_path(@search.exhibit), notice: t(:'helpers.submit.search.updated', model: @search.class.model_name.human.downcase) else render action: 'edit' end end |