diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 2729005c3..4e67b208c 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -73,9 +73,9 @@ class GamesController < ApplicationController # 自动推送下一个任务 def next_step next_game = @game.next_game - next_game = publish_games challenge, @myshixun.id, position + next_game.update_attribute(:status, 0) respond_to do |format| - format.html{redirect_to myshixun_game_path(next_game, :myshixun_id => @myshixun.id)} + format.js{redirect_to myshixun_game_path(next_game, :myshixun_id => @myshixun.id)} end end diff --git a/app/views/games/_game_show.html.erb b/app/views/games/_game_show.html.erb index 9e41f89ad..642a6ce9a 100644 --- a/app/views/games/_game_show.html.erb +++ b/app/views/games/_game_show.html.erb @@ -6,7 +6,7 @@