Forum: Ruby on Rails extracting data

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.
962072a31e99f20b0603d62b4488c8ca?d=identicon&s=25 Rajmohan Banavi (Guest)
on 2007-06-28 12:33
(Received via mailing list)
Hi all,

I am posting some xml data to the rails server using curl. Now how do I
extract the posted xml data from the http request? I saw that one can
the request parameters like params[:id] etc since params is a hash but I
not sure how the xml data can be extracted (any key to use?).

Pasted below is the console log of the server...


C:\InstantRails\rails_apps\sample>ruby script\server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready.  INT => stop (no restart).
** Mongrel available at
** Use CTRL-C to stop.

Processing GreetingController#index (for at 2007-06-28
  Session ID: 6e614a5701545b4b876246dc292a4422
  Parameters: {"<Data>\r\n            <Man>Bif Factory,
Ltd.</Man>\r\n                    <mod>4119</Mod>\r\n
<Desc>Jane's phones</Desc\r\n                </Data>\r\n        \r\n",
"action"=>"index", "controller"=>"greeting"}
Rendering greeting/index
Completed in 0.00010 (10000 reqs/sec) | Rendering: 0.00000 (0%) | 200 OK
This topic is locked and can not be replied to.