Fix refresh
This commit is contained in:
@@ -81,7 +81,11 @@ class ContestsController < ApplicationController
|
||||
filter_contestants_per_category
|
||||
@puzzles = @contest.puzzles.order(:id)
|
||||
@action_name = t("helpers.buttons.refresh")
|
||||
@action_path = "/public/#{@contest.friendly_id}"
|
||||
if params.key?(:category)
|
||||
@action_path = "/public/#{@contest.friendly_id}?category=#{params[:category]}"
|
||||
else
|
||||
@action_path = "/public/#{@contest.friendly_id}"
|
||||
end
|
||||
render :scoreboard
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user