Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding text format to index

  • Loading branch information...
commit 4848d6b4f8a3333100902e0ff78748cd933669d9 1 parent 363e22f
Ken Mayer authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  app/controllers/droids_controller.rb
1  app/controllers/droids_controller.rb
@@ -7,6 +7,7 @@ def index
7 7
     respond_to do |format|
8 8
       format.html # index.html.erb
9 9
       format.xml  { render :xml => @droids }
  10
+      format.text  { render :text => @droids.sort_by(&:name).map(&:name).join(", ") }
10 11
     end
11 12
   end
12 13
 

0 notes on commit 4848d6b

Please sign in to comment.
Something went wrong with that request. Please try again.