This project is archived and is in readonly mode.
to_xml generates invalid xml with namespaced ActiveRecord redux
Reported by phs | May 12th, 2010 @ 10:02 PM
It appears 3.0.0.beta2 regresses #2723:
>> Wheelie-Cyberman:~/code/accounts $ rails c
Loading development environment (Rails 3.0.0.beta2)
>> print Accounts::User.all.to_xml
<?xml version="1.0" encoding="UTF-8"?>
<accounts/users type="array">
<accounts/user>
<display-name nil="true"></display-name>
<email nil="true"></email>
<id type="integer">1</id>
<password nil="true"></password>
</accounts/user>
</accounts/users>
=> nil
>>
Comments and changes to this ticket
-
phs May 12th, 2010 @ 10:06 PM
Interestingly, the problem disappears when serializing just one instance:
>> Wheelie-Cyberman:~/code/accounts $ rails c Loading development environment (Rails 3.0.0.beta2) >> print Accounts::User.first.to_xml <?xml version="1.0" encoding="UTF-8"?> <accounts-user> <display-name nil="true"></display-name> <email nil="true"></email> <id type="integer">1</id> <password nil="true"></password> </accounts-user> => nil >>
-
phs May 12th, 2010 @ 10:13 PM
- Title changed from to_xml generates invalid xml with namespaced ActiveRecord to to_xml generates invalid xml with namespaced ActiveRecord redux
-
phs May 12th, 2010 @ 10:13 PM
- no changes were found...
-
Ryan Bigg May 13th, 2010 @ 11:41 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>