Rails application Webservices

hi all,

I have a rails application at http://electric-sky-98.heroku.com/products

require ‘net/http’
require ‘uri’
res = Net::HTTP.get_response(URI.parse(‘http://electric-
sky-98.heroku.com/products.xml’))
puts res.body

the above code gave me the xml file below:

<?xml version="1.0" encoding="UTF-8"?> Tubers 2010-10-30T01:35:48Z 1 Yam £ 30 100 tubers WDW332 2010-10-30T01:35:48Z

QUESTION:::
How do i create a new product object at
http://electric-sky-98.heroku.com/products
with ruby HTTP POST

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs