This project is archived and is in readonly mode.
Fix Array#to_xml to produce valid markup when working with namespaced classes
Reported by Yaroslav Markin | December 27th, 2009 @ 11:06 PM | in 2.3.6
How to reproduce:
@records = Namespaced::Model.all
render :xml => @records.to_xml
Before:
<namespaced/models>
<namespaced/model>
<!-- -->
</namespaced/model>
</namespaced/models>
After:
<namespaced-models>
<namespaced-model>
<!-- -->
</namespaced-model>
</namespaced-models>
Comments and changes to this ticket
-

Mark Foster February 1st, 2010 @ 01:17 AM
+1 Found the same bug and developed the same fix, unawares at ticket 3824. Solves the problem.
-

Repository April 10th, 2010 @ 05:18 PM
- State changed from new to resolved
(from [a84e9b4f31ac39b0e466f8f0efc507a52dbb02c0]) Fix Array#to_xml to produce valid markup when working with namespaced classes [#3624 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/a84e9b4f31ac39b0e466f8f0efc507... -

José Valim April 10th, 2010 @ 05:19 PM
- Milestone set to 2.3.6
- Assigned user changed from Jeremy Kemper to José Valim
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>
People watching this ticket
Attachments
Tags
Referenced by
-
3824
to_xml generates invalid xml for arrays of namespaced ActiveRecords
Applied this one instead of #3624 since
it applies on mas...
-
3624
Fix Array#to_xml to produce valid markup when working with namespaced classes
(from [a84e9b4f31ac39b0e466f8f0efc507a52dbb02c0])
Fix Arr...
-
3824
to_xml generates invalid xml for arrays of namespaced ActiveRecords
Seems like I have the same thing at #3624.