diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb index b260be0ae74a26026822498ad5247fc55ac508b6..ff143f3f6e6bb62256f6134fbcbe52e597d7bb47 100644 --- a/app/controllers/refs_controller.rb +++ b/app/controllers/refs_controller.rb @@ -13,9 +13,9 @@ class RefsController < ApplicationController layout "project" - def switch - respond_to do |format| - format.html do + def switch + respond_to do |format| + format.html do new_path = if params[:destination] == "tree" project_tree_path(@project, @ref) else @@ -69,6 +69,6 @@ class RefsController < ApplicationController end def ref - @ref = params[:id] + @ref = params[:ref] end end