Commit 5074a801dbcd423adacd71f6e670c2133a318733

Authored by Pius Uzamere
1 parent 0d8f0060

hot fix

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/prompts_controller.rb
@@ -152,7 +152,7 @@ class PromptsController < InheritedResources::Base @@ -152,7 +152,7 @@ class PromptsController < InheritedResources::Base
152 152
153 def show 153 def show
154 @question = Question.find(params[:question_id]) 154 @question = Question.find(params[:question_id])
155 - @prompt = @question.prompts.find(params[:id], :include => [{ :left_choice => :item }, { :right_choice => :item }]) 155 + @prompt = @question.prompts.find(params[:id])#, :include => [{ :left_choice => :item }, { :right_choice => :item }])
156 format.xml { render :xml => @prompt.to_xml(:methods => [:left_choice_text, :right_choice_text])} 156 format.xml { render :xml => @prompt.to_xml(:methods => [:left_choice_text, :right_choice_text])}
157 format.json { render :json => @prompt.to_json(:methods => [:left_choice_text, :right_choice_text])} 157 format.json { render :json => @prompt.to_json(:methods => [:left_choice_text, :right_choice_text])}
158 end 158 end