To_xml output hyphen instead of underscore update?

I found this solution:

http://wrath.rubyonrails.org/pipermail/rails/2006-July/057420.html

Are there any better ideas out there?

On 10/27/06, Joe [email protected] wrote:

I found this solution:

http://wrath.rubyonrails.org/pipermail/rails/2006-July/057420.html

Are there any better ideas out there?

I’m unsure of the problem as stated, but to_xml takes a boolean
:dasherize
option.

jeremy

Actually in a moment of simplicity I just tried to_xml.underscore and
it worked.

On 10/27/06, Joe remo[email protected] wrote:

This didn’t seem to work for me (1.1.6):

render :xml=>@items.to_xml(:dasherize =>false)

Try it on edge (soon to be 1.2).

jeremy

This didn’t seem to work for me (1.1.6):

render :xml=>@items.to_xml(:dasherize =>false)

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