Rails and REST

class PeopleController < ApplicationController
def index
    @peope = People.find(:all)
     respond_to do | request |
         request.html { }
         request.xml { render :xml => @people..to_xml(:except => [:id])

The couple of dots is a typo.

result = Net::HTTP.get(URI(‘http://localhost:3000/people’))
@people = REXML::Document.new(result)

How can I get the my index to response with XML?

If you have declared

   map.resources :people

then you can specify the desired "xml" format this way:

   http://localhost:3000/people.xml

-- fxn