[refs #2109] Fixed platform editing
This commit is contained in:
parent
974b38fd89
commit
879b7acf8e
|
@ -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
|
||||
|
@ -34,6 +34,10 @@ class PlatformsController < ApplicationController
|
|||
@platform = Platform.new
|
||||
end
|
||||
|
||||
def edit
|
||||
@platforms = Platform.all
|
||||
end
|
||||
|
||||
def create
|
||||
@platform = Platform.new params[:platform]
|
||||
|
||||
|
|
Loading…
Reference in New Issue