app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-2.0.0.rc5 vs app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-2.0.0.rc6

- old
+ new

@@ -54,31 +54,31 @@ def create @page.attributes = page_params @page.last_edited_by = @page.created_by = current_user if @page.save - redirect_to [@page.exhibit, page_collection_name], notice: t(:'helpers.submit.page.created', model: @page.class.model_name.human.downcase) + redirect_to [spotlight, @page.exhibit, page_collection_name], notice: t(:'helpers.submit.page.created', model: @page.class.model_name.human.downcase) else render action: 'new' end end # PATCH/PUT /pages/1 def update @page.lock.delete if @page.lock if @page.update(page_params.merge(last_edited_by: current_user)) - redirect_to [@page.exhibit, @page], flash: { html_safe: true }, notice: undo_notice(:updated) + redirect_to [spotlight, @page.exhibit, @page], flash: { html_safe: true }, notice: undo_notice(:updated) else render action: 'edit' end end # DELETE /pages/1 def destroy @page.destroy - redirect_to [@page.exhibit, page_collection_name], flash: { html_safe: true }, notice: undo_notice(:destroyed) + redirect_to [spotlight, @page.exhibit, page_collection_name], flash: { html_safe: true }, notice: undo_notice(:destroyed) end def update_all notice = if @exhibit.update update_all_page_params t(:'helpers.submit.page.batch_updated', model: human_name)