progress bar logic
This commit is contained in:
@ -3,7 +3,7 @@ class CandidateController < ApplicationController
|
||||
end
|
||||
|
||||
def question
|
||||
@question = Question.where(input_type: 'live-coder').order("RAND()").first
|
||||
@question = Question.order("RAND()").first # .where(input_type: 'live-coder')
|
||||
@status = QuizStatus.new(Candidate.order("RAND()").first)
|
||||
@answer = @question.answers.order("RAND()").first
|
||||
end
|
||||
|
Reference in New Issue
Block a user