Thank you for your help Dave.
My feed reader was able to read the feed with that format. But when I use
"application/rss+xml" with Firefox, I get the "Open With\Save
As" dialog
when I browse to localhost:3000/xml/rss and IE gives me the message that it
"cannot download rss from localhost".
I switched to "application/xml; charset=utf-8" per
http://wiki.rubyonrails.com/rails/pages/HowtoChangeTheContentType. With this
format both Firefox and IE quietly display the feed content -- and the feed
reader is also fine with the URL "localhost:3000/xml/rss".
AOK
-----Original Message-----
From: Dave Silvester [mailto:dave-AJqNGCqIqVQ7cdpDWioORw@public.gmane.org]
Sent: Wednesday, November 23, 2005 5:26 AM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Cc: Andrea O. K. Wright
Subject: Re: [Rails] RSS Feed Implementation Issue
On Wednesday 23 Nov 2005 08:47, Andrea O. K. Wright
wrote:> If I point my browser to localhost:3000/xml/rss, the content appears in
> xml format and looks ***just right***. But my feed reader chokes when I
> give it that URL.
> Any hints would be greatly appreciated.
> What am I missing?
Are you setting the MIME type correctly (in your xml_controller, on the rss
action)? Should be:
headers[''Content-Type''] = "application/rss+xml"
~Dave
--
Dave Silvester
Rent-A-Monkey Website Development
Web: http://www.rentamonkey.com/
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.5/177 - Release Date: 11/21/2005
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.6/179 - Release Date: 11/23/2005