Fixed bug with platforms#clone

This commit is contained in:
George Vinogradov 2011-11-02 02:05:18 +04:00
parent 103cb16f27
commit 392db40a31
1 changed files with 1 additions and 1 deletions

View File

@ -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