Sign In/My Account | View Cart  
advertisement

Article:
 Putting REST on Rails
Subject: Output problem.
Date: 2006-07-18 12:59:48
From: Derek Dees

Everything went great until the curl test at the end.


Then I get:


D:\tmp\ruby\project_library\app\views\book>curl http://library/books
<?xml version="1.0" encoding="UTF-8"?>
<books>
<title>Books</title>
<book>
<id>1</id>
<title>King in Yellow</title>
<link href="http://library/books/1"/>
</book>
</books>
Loaded suite D:/tmp/ruby/project_library/public/dispatch.cgi
Started


Finished in 0.0 seconds.


0 tests, 0 assertions, 0 failures, 0 errors



That's the right info, but the content appended after the </books> tag will cause problems with browsers. I've not been able to find a flag to flip to turn this off. Any suggestions?


Thanks.



Previous Message Previous Message   Next Message Next Message


Sponsored By: