This project is archived and is in readonly mode.

#1836 ✓committed
Wiktor Gworek

AtomFeedBuilder renders not valid xml when using options[:xml]

Reported by Wiktor Gworek | February 1st, 2009 @ 11:47 AM | in 2.x

When using atom_feed in standalone app:

atom_feed({ :id => 1, :root_url => 'root_url', :language => 'pl_PL', :url => 'some_url', :xml => Builder::XmlMarkup.new}) do |feed| ...

renders:

<?xml version="1.0" encoding="UTF-8"?><feed<to_s/> xml="<?xml version="1.0" encoding="UTF-8"?><inspect/><feed<to_s/>" xml:lang="pl_PL" xmlns="http://www.w3.org/2005/Atom">

which is not valid. This is due line 144 in atom_feed_helper.rb: feed_opts.merge!(options).reject!{|k,v| !k.to_s.match(/^xml/)} It doesn't rejectes (but should) options[:xml].

Comments and changes to this ticket

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>

Referenced by

Pages