skill-assessment-app/app/controllers/candidate_controller.rb

20 lines
353 B
Ruby
Raw Normal View History

2016-07-27 22:16:12 -05:00
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