Using Rails 1.1 param parsers

Hello,

I want to use the new param parsers in Rails 1.1 to process POST’ed xml
form
data (at the moment I manually parse request.raw_post using REXML). As
per
Scott R.:

"Pluggable parameter parsers make writable REST web services a cinch.
By
default, posts submitted with the application/xml content type is
handled by
creating a XmlSimple hash with the same name as the root element of the
submitted XML"

so it sounds like I’m just duplicating parsing that Rails is already
doing.

My question is: how do I access the parsed data ? What’s the variable
name ?
I can’t find anything in the ActionController::AbstractRequest docs that
seems to fit the bill

many thanks.

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