重定向到项目配置里的新建版本页面

This commit is contained in:
lizanle 2015-04-21 17:10:07 +08:00
parent 2043b963c8
commit da7528c780
1 changed files with 8 additions and 7 deletions

View File

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