Commit fa9c5642d83f6c092e1d9cde4937261c1a27f442

Authored by Pius Uzamere
1 parent 5074a801

fixed typo

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/controllers/prompts_controller.rb
... ... @@ -152,7 +152,8 @@ class PromptsController < InheritedResources::Base
152 152  
153 153 def show
154 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 + show! do |format|
156 157 format.xml { render :xml => @prompt.to_xml(:methods => [:left_choice_text, :right_choice_text])}
157 158 format.json { render :json => @prompt.to_json(:methods => [:left_choice_text, :right_choice_text])}
158 159 end
... ...