loads input option partials on type change

This commit is contained in:
Mark Moser
2016-08-22 16:24:00 -05:00
parent bdec83b3b6
commit 488b89ddfa
7 changed files with 49 additions and 13 deletions

View File

@ -43,6 +43,11 @@ module Admin
end
end
def options
@question = params[:question_id].present? ? Question.find(params[:question_id]) : Question.new
render layout: false
end
private
def question_params