From 392db40a31731bbb63d2928e62450a630ee53a0d Mon Sep 17 00:00:00 2001 From: George Vinogradov Date: Wed, 2 Nov 2011 02:05:18 +0400 Subject: [PATCH] Fixed bug with platforms#clone --- app/controllers/platforms_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/platforms_controller.rb b/app/controllers/platforms_controller.rb index e112c7753..0873ce4c1 100644 --- a/app/controllers/platforms_controller.rb +++ b/app/controllers/platforms_controller.rb @@ -84,7 +84,7 @@ class PlatformsController < ApplicationController def clone can_perform? @platform if @platform if request.post? - cloned = @platform.clone(request[:platform]['name'], request[:platform]['unixname']) + cloned = @platform.clone(params[:platform]['name'], params[:platform]['unixname']) if cloned flash[:notice] = 'Клонирование успешно' redirect_to cloned