After reading about building a public platform API with Rails, we found that
Params[:xml] This was done in Rails 4, so I looked at the new features of Rails 4 and found the XML Parameter parsing have been sent to a plugin.
Http://www.rubydoc.info/github/rails/actionpack-xml_parser
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_afterActionDispatch::ParamsParser,ActionDispatch::XmlParamsParser
//*********************************************************************************************
Then, add ActionDispatch::XmlParamsParser Middleware after ActionDispatch::ParamsParser in config/application.rb :
config.middleware.insert_afterActionDispatch::ParamsParser,ActionDispatch::XmlParamsParser
:
Rails 4.0 removes the XML parameter parser. To use please join Actionpack-xml_parser