diff --git a/app/controllers/experiments_controller.rb b/app/controllers/experiments_controller.rb index 9e55135bf..1aff48317 100644 --- a/app/controllers/experiments_controller.rb +++ b/app/controllers/experiments_controller.rb @@ -68,7 +68,6 @@ class ExperimentsController < ApplicationController @experiment.archived = true @experiment.archived_by = current_user @experiment.archived_on = DateTime.now - if @experiment.save flash[:success] = t('experiments.archive.success_flash', experiment: @experiment.name) diff --git a/config/routes.rb b/config/routes.rb index 688df3305..cc089288c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -88,7 +88,9 @@ Rails.application.routes.draw do post 'destroy', as: :destroy # Destroy multiple entries at once end end - resources :experiments, only: [:new, :create, :edit, :update], defaults: { format: 'json' } + resources :experiments, + only: [:new, :create, :edit, :update], + defaults: { format: 'json' } member do get 'notifications' # Notifications popup for individual project in projects index get 'samples' # Samples for single project