http://api.rubyonrails.com/classes/ActiveRecord/XmlSerialization.html
Found it. What''s the point of dasherizing anyways?
On Sep 29, 7:58 pm, eggie5
<egg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> When I call to_xml on my active record objects, it replaces
> underscores with hypens. E.g.:
>
> <categories>
> <category>
> <content-provider-id
type="integer">1</content-provider-id>
> <id type="integer">2</id>
> <name>Traffic Alerts</name>
> </category>
> </categories>
>
> When the actual field is content_provider_id. I remember seeing an
> option for this somewhere... Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---