[refs #2109] Fixed platform editing

This commit is contained in:
konstantin.grabar 2011-10-25 17:07:19 +04:00
parent 974b38fd89
commit 879b7acf8e
1 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@
class PlatformsController < ApplicationController
before_filter :authenticate_user!
before_filter :find_platform, :only => [:freeze, :unfreeze, :clone]
before_filter :find_platform, :only => [:freeze, :unfreeze, :clone, :edit]
before_filter :get_paths, :only => [:new, :create]
def index
@ -33,6 +33,10 @@ class PlatformsController < ApplicationController
@platforms = Platform.all
@platform = Platform.new
end
def edit
@platforms = Platform.all
end
def create
@platform = Platform.new params[:platform]