重定向到项目配置里的新建版本页面
This commit is contained in:
parent
2043b963c8
commit
da7528c780
|
@ -85,13 +85,14 @@ class VersionsController < ApplicationController
|
|||
end
|
||||
|
||||
def new
|
||||
@version = @project.versions.build
|
||||
@version.safe_attributes = params[:version]
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js
|
||||
end
|
||||
# @version = @project.versions.build
|
||||
# @version.safe_attributes = params[:version]
|
||||
#
|
||||
# respond_to do |format|
|
||||
# format.html
|
||||
# format.js
|
||||
# end
|
||||
redirect_to settings_project_url(@project, :tab => 'versions')
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
Loading…
Reference in New Issue