Hey all,
I’m trying to change the xml output from a dash to underscore:
2010-01-15T17:00:23Z
to
<updated_at type=“datetime”>2010-01-15T17:00:23Z</updated_at>
Does anyone have any suggestions? Thanks.
Hey all,
I’m trying to change the xml output from a dash to underscore:
2010-01-15T17:00:23Z
to
<updated_at type=“datetime”>2010-01-15T17:00:23Z</updated_at>
Does anyone have any suggestions? Thanks.
John M. wrote:
Hey all,
I’m trying to change the xml output from a dash to underscore:
2010-01-15T17:00:23Z
to
<updated_at type=“datetime”>2010-01-15T17:00:23Z</updated_at>
Does anyone have any suggestions? Thanks.
@model.to_xml :dasherize => false
Hi John,
On Fri, 2010-01-15 at 20:36 +0100, John M. wrote:
I’m trying to change the xml output from a dash to underscore:
What are you using to generate the xml ? There are several options.
Best regards,
Bill
On Fri, 2010-01-15 at 20:36 +0100, John M. wrote:
I’m trying to change the xml output from a dash to underscore:
Just in case, if you’re using the to_xml method, add :dasherize => false
to the options.
HTH,
Bill
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs