Thanks for the reply Eloy. I took a look at the link to that commit
you posted, but i'm not sure if its exactly what i'm looking for. If
i'm reading the code correctly (specifically the activesupport bits
since activerecords to_xml seems to be working as i want it to) the
code seems to look for a :camelize option passed along and then
camelizes the key if its set and dasherizes the key by default.. what
i want to do is just keep the fieldname / tag the same regardless of
what naming convention is used.

The test case would be something like this:

xml = %(<blah_blah> <JunkOne> 1 </JunkOne> <JunkTwo> 2 </JunkTwo>
<dasherized_tag> 3 </dasherized_tag> </blah_blah>

h = Hash.from_xml(xml)

assert_equal(h, {"blah_blah" => {"JunkOne" => "1", "JunkTwo" => "2",
"dasherized_tag" => "3"}})

notice that regardless of the tag name the key is the same string.
what rails is currently doing is giving me a result that looks like
this:
{"blah_blah" => {"junk_one" => "1", "junk_two" => "2",
"dasherized_tag" => "3"}}

Forgive me if that is indeed what the commit you posted will
accomplish.. it's been a long day and i had my app almost ready to
deploy prior to this new release of rails.

Thanks a million,

Stuart

On Mar 17, 7:53 pm, Eloy Duran <[email protected]> wrote:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to