live coder load on question template

This commit is contained in:
Derek Montgomery
2016-07-29 11:00:04 -05:00
parent fc6b56d9b8
commit 1a8d7629ff
5 changed files with 32 additions and 24 deletions

View File

@@ -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