Forum: Ruby on Rails Need help with REST using Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
548240c1431285c235ecf711293a7311?d=identicon&s=25 Yash (Guest)
on 2006-02-09 14:26
I am using the rest_resource.rb file available from the article:
http://www.xml.com/pub/a/2005/11/02/rest-on-rails....

This script provides a method respond to a post request that sends an
XML to the server to update the database. It also responds to a get
request with a response containing an XML with data from the database.

I would like to use this between two processes, to synchronize two
remote databases. The processes, on one the client PC and one on the
server, will query each other to find what is new. So if there is a
change in the data on the PC, it has to POST and XML to the server with
the data containing the changes. The Server will then parse the XML and
update its database.

Can somebody tell me how to POST an XML to the server in Rails?

Thanks,
Yash
This topic is locked and can not be replied to.