vendredi 9 février 2018

Is there a way to keep POSTed XML in tact in Ruby on Rails?

I have a REST API in my Rails app that users will be posting XML to. I know that Rails (perhaps Rack in this case) converts the posted data to a params hash.

I'm curious if there's a way to get Rails to not convert the XML to a params hash? Instead, I'd like to get the XML as a string.

Aucun commentaire:

Enregistrer un commentaire