roughed in quiz GET views
This commit is contained in:
19
app/controllers/candidate_controller.rb
Normal file
19
app/controllers/candidate_controller.rb
Normal 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
|
Reference in New Issue
Block a user