diff --git a/app/controllers/survey/questions_controller.rb b/app/controllers/survey/questions_controller.rb index 0e88883..ee33a3f 100644 --- a/app/controllers/survey/questions_controller.rb +++ b/app/controllers/survey/questions_controller.rb @@ -40,6 +40,7 @@ class Survey::QuestionsController < ApplicationController # GET /survey/questions/new.json def new @survey_question = Survey::Question.new + @commentable=params[:commentable_type].constantize.find(params[:commentable_id]) respond_to do |format| format.html # new.html.erb end