diff --git a/app/controllers/contexts_controller.rb b/app/controllers/contexts_controller.rb index 0bc537a9..a6602e8a 100644 --- a/app/controllers/contexts_controller.rb +++ b/app/controllers/contexts_controller.rb @@ -151,7 +151,7 @@ class ContextsController < ApplicationController def order context_ids = params["container_context"] @projects = current_user.contexts.update_positions( context_ids ) - render :nothing => true + head :ok rescue notify :error, $! redirect_to :action => 'index' diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index d7c12454..dc33ea3b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -281,7 +281,7 @@ class ProjectsController < ApplicationController def order project_ids = params["container_project"] @projects = current_user.projects.update_positions( project_ids ) - render :nothing => true + head :ok rescue notify :error, $! redirect_to :action => 'index'