actionpack-xml_parser

A XML parameters parser for Action Pack (removed from core in Rails 4.0)

Installation

Include this gem into your Gemfile:

gem 'actionpack-xml_parser'

Then, add ActionDispatch::XmlParamsParser middleware after ActionDispatch::ParamsParser in config/application.rb:

config.middleware.insert_after ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser

You may need to require the ActionDispatch::XmlParamsParser manually. Add the following in your config/application.rb:

require 'action_dispatch/xml_params_parser'