When one sends for example a POST request with an XML body Rails
parses this into a hash with a corresponding structure. How is this
conversion done and where? Which XML library is used? Any pointers on
where in the Rails source this is done would be helpful.
When one sends for example a POST request with an XML body Rails
parses this into a hash with a corresponding structure. How is this
conversion done and where? Which XML library is used? Any pointers on
where in the Rails source this is done would be helpful.
See
You can override what happens with
ActionController::Base.param_parsers[Mime::Type.lookup
(‘some_mime_type’)] = Proc.new do |data| #turn data into a hash of attributes
end