live coder load on question template

This commit is contained in:
Derek Montgomery committed 2016-07-29 11:03:11 -05:00
1 parent fc6b56d9b8
commit 1a8d7629ff
5 files changed
+32 -24

No files matched your search

+6
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