20 lines
356 B
Ruby
20 lines
356 B
Ruby
class CandidateController < ApplicationController
|
|
def welcome
|
|
end
|
|
|
|
def question
|
|
@question = Question.order("RAND()").first # .where(input_type: 'live-coder')
|
|
@status = QuizStatus.new(Candidate.order("RAND()").first)
|
|
@answer = @question.answers.order("RAND()").first
|
|
end
|
|
|
|
def summary
|
|
end
|
|
|
|
def thankyou
|
|
end
|
|
|
|
def saved
|
|
end
|
|
end
|