Forum: Ruby on Rails REST in rails 1.2.5

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sijo k. (Guest)
on 2008-10-30 14:36
     I am using rails 1.2.5 And as part of learning rails I just create
a model Person and migrated it (I am following the REST for rails 2
tutorial from peepcode) Then did ./script/generate scaffold Person

     Now inside config/routes.rb  added map.resources :people
  In people controller index action
def index
    @person_pages, @people = paginate :people, :per_page => 10
    respond_to do |format|
       format.xml { render :xml => @people }
     And also have the view file Now when http://localhost:3000/people
I get the data displayed  But when
http://localhost:3000/people.xml  I get

XML Parsing Error: unclosed token
Location: http://localhost:3000/people.xml
Line Number 1, Column 1:

              could you please tell why this error happens?Also is there
huge differnece in REST for rails 1.2.5 and 2.x

Thanks in advance
This topic is locked and can not be replied to.