修复新建问卷时刷新页面,会新建一个问卷的BUG

This commit is contained in:
sw 2015-01-16 11:05:04 +08:00
parent 40d6ebfd88
commit a683acf85c
1 changed files with 1 additions and 3 deletions

View File

@ -46,9 +46,7 @@ class PollController < ApplicationController
} }
@poll = Poll.create option @poll = Poll.create option
if @poll if @poll
respond_to do |format| redirect_to edit_poll_url @poll.id
format.html{render :layout => 'base_courses'}
end
end end
elsif @project elsif @project
#项目的问卷调查相关代码 #项目的问卷调查相关代码