I'm trying to write a RoR program to create an RSS feed. I'm pretty sure the XML it's producing is valid (it looks fine when viewed in Firefox) but I get very strange behaviour when testing it in Safari. If I hit "http://localhost/rss/", Safari does a redirect to "feed:http://" and then of course fails. If I'm lucky (!) Safari then refuses to load any more web pages unless I restart it. So I experimented by saving the "View Source" of the page (courtesy of Firefox) into a static file and put that in my ~/Sites dir. Now when I go to http://localhost/~ratkins/example.xml, I get a redirect to http://example.xml/, which of course fails. Can anybody tell me what's going on? Cheers, Robert.
on 2005-11-22 16:09
on 2005-11-22 16:29
In article <email@example.com >, Robert A. <firstname.lastname@example.org> wrote: > I'm trying to write a RoR program to create an RSS feed. I'm pretty sure > the XML it's producing is valid (it looks fine when viewed in Firefox) > but I get very strange behaviour when testing it in Safari. > [...] > Can anybody tell me what's going on? Not from the info you gave, but there is one thing you should do: make sure that you know the XML you produce is valid, for instance using <http://www.feedvalidator.org/>. In my experience, Safari is quite picky about feed formats, compared to NetNewsWire. If that does not help, you should provide a short example of the XML you generate. I also would suggest doing that in a different newsgroup, since this has nothing to do with ruby (yes, you are using ruby to generate the XML, but as far as I can tell from your post, you do not have problems with rails or ruby) and this group already is quite busy. Reinder
on 2005-11-22 16:41
Safari doesn't like feeds from localhost. It's a real pain. You might be able to do some hosts file or dns trickery (I usually test my XML feeds being served from my desktop (linux) to my laptop (osx))
on 2005-11-22 23:28
Safari has a bug prevents viewing feeds unless there's at least one dot in the hostname. If you use 127.0.0.1 instead of localhost it should work.