# REST in rails 1.2.5

**URL:** <https://www.ruby-forum.com/t/rest-in-rails-1-2-5/152135>\
**Category:** Rails\
**Created:** [October 30, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/rest-in-rails-1-2-5/152135 "2008-10-30T13:36:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [October 30, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/rest-in-rails-1-2-5/152135/1 "2008-10-30T13:36:47Z")

</div>

Hi  
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.html  
format.xml { render :xml =\> @people }  
end  
end  
And also have the view file Now when [http://localhost:3000/people](http://localhost:3000/people)  
I get the data displayed But when  
[http://localhost:3000/people.xml](http://localhost:3000/people.xml) I get

XML Parsing Error: unclosed token  
Location: [http://localhost:3000/people.xml](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  
Sijo
