live coder load on question template
This commit is contained in:
@@ -35,6 +35,12 @@ class CandidateController < ApplicationController
|
||||
redirect_to :question
|
||||
end
|
||||
|
||||
def live_coder
|
||||
@question = Question.find(params[:question_id])
|
||||
@answer = @question.answers.order("RAND()").first.answer
|
||||
render layout: false
|
||||
end
|
||||
|
||||
# private
|
||||
#
|
||||
# def question_params
|
||||
|
Reference in New Issue
Block a user