Commit 0d8f00600fb3908b19cacf5dea46b6aa498e3f05
1 parent
4c4c60d8
Exists in
master
and in
1 other branch
removing cruft
Showing
1 changed file
with
1 additions
and
17 deletions
Show diff stats
app/controllers/prompts_controller.rb
... | ... | @@ -157,23 +157,7 @@ class PromptsController < InheritedResources::Base |
157 | 157 | format.json { render :json => @prompt.to_json(:methods => [:left_choice_text, :right_choice_text])} |
158 | 158 | end |
159 | 159 | end |
160 | - | |
161 | - def single | |
162 | - @question = current_user.questions.find(params[:question_id]) | |
163 | - @prompt = @question.prompts.pick | |
164 | - show! do |format| | |
165 | - format.xml { render :xml => @prompt.to_xml} | |
166 | - format.json { render :json => @prompt.to_json} | |
167 | - end | |
168 | - end | |
169 | - | |
170 | - # | |
171 | - # def index | |
172 | - # index! do |format| | |
173 | - # format.xml { params[:data].blank? ? @prompts.to_xml : @prompts.to_xml(:include => [:items]) } | |
174 | - # format.json { params[:data].blank? ? @prompts.to_json : @prompts.to_json(:include => [:items]) } | |
175 | - # end | |
176 | - # end | |
160 | + | |
177 | 161 | |
178 | 162 | protected |
179 | 163 | def begin_of_association_chain | ... | ... |