To_xml node names with underscores

When I call to_xml on my active record objects, it replaces
underscores with hypens. E.g.:

1 2 Traffic Alerts

When the actual field is content_provider_id. I remember seeing an
option for this somewhere… Any ideas?

http://api.rubyonrails.com/classes/ActiveRecord/XmlSerialization.html

Found it. What’s the point of dasherizing anyways?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs