Fix rep destroy redirect

This commit is contained in:
konstantin.grabar 2011-10-28 03:16:22 +04:00
parent 3b78277536
commit 4f6bfac345
1 changed files with 2 additions and 1 deletions

View File

@ -24,9 +24,10 @@ class RepositoriesController < ApplicationController
def destroy
@repository.destroy
platform_id = @repository.platform_id
flash[:notice] = t("flash.repository.destroyed")
redirect_to platform_path(@platform)
redirect_to platform_path(platform_id)
end
def create