Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can anyone confirm whether or not I still need to add ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML) to an initializer if my apps have been updated to rails 3.2.11?


I suggest that you test it. You should get something like 'Disallowed type attribute' error if everything is installed correctly. You can use Postman Chrome extension to quickly test if your server is ok.


You will only get that error if you upgrade to 3.2.11 (or whatever) and do not disable XML. If you disable XML, you'll just silently not parse the XML (regardless of update status).


If you disable xml or yaml parsing, you'll see the raw yaml come through in the parameters hash.


Im 90% certain you do not. That's just if you don't really have the mojo to update your app right now.

But don't quote me on that...


Updating to 3.2.11 is sufficient.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: