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

Poll
sw 10 years ago
parent 40d6ebfd88
commit a683acf85c

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

Loading…
Cancel
Save