roughed in quiz GET views

This commit is contained in:
Mark Moser
2016-07-27 22:16:12 -05:00
parent 0d5ab42158
commit 5207b6b8fd
17 changed files with 288 additions and 7 deletions

View File

@ -0,0 +1,19 @@
class CandidateController < ApplicationController
def welcome
end
def question
@question = Question.where(input_type: 'live-coder').order("RAND()").first
@status = QuizStatus.new(Candidate.order("RAND()").first)
@answer = @question.answers.order("RAND()").first
end
def summary
end
def thankyou
end
def saved
end
end