Displaying 1 result from an estimated 1 matches for "camelise_xml".
2009 Sep 09
0
ActiveResource - Two simple questions
...on a custom
RESTful API.
Firstly, I can''t seem to disable the transforms it does when it parses
the XML. For example "CamelCase" gets rendered as camel_case, likewise
underscores get converted to dashes. The docs page for ActiveResource
mentions being able to set
ActiveSupport.camelise_xml = false
In an initializer to disable this. This throws an error. I think I can
get around the naming problems by converting the hash into XML with
the correct formatting then back into a hash again. This seems crazy.
Secondly, when constructing forms using form_for on ActiveResource
objects, it t...