Permalink
Browse files

Adding text format to index

  • Loading branch information...
1 parent 363e22f commit 4848d6b4f8a3333100902e0ff78748cd933669d9 @kmayer committed Jun 24, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/droids_controller.rb
View
1 app/controllers/droids_controller.rb
@@ -7,6 +7,7 @@ def index
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @droids }
+ format.text { render :text => @droids.sort_by(&:name).map(&:name).join(", ") }
end
end

0 comments on commit 4848d6b

Please sign in to comment.