Rss feed is not detected in firefox?


#1

my rails version is 2.2.0
i have created a rss feed
It is working fine in IE
but in fire fox
only xml content is showned
like

“This XML file does not appear to have any style information associated
with it. The document tree is shown below.”

any idea ?


#2

Thani A. wrote:

my rails version is 2.2.0
i have created a rss feed
It is working fine in IE
but in fire fox

what version?

only xml content is showned
like

“This XML file does not appear to have any style information associated
with it. The document tree is shown below.”

any idea ?

An rss feed IS only XML (if you don’t apply a style sheet)
There is a built-in style sheet for displaying feeds (that don’t have a
style sheet specified) in
IE, Safari and the last version of Firefox (probably you are using an
old version)

Duilio R.


#3

Duilio R. wrote:

what version?

this my “index.xml.builder” file content
#-------------------
xml.instruct! :xml
xml.rss “version” => “2.0”, “xmlns:dc” =>
http://purl.org/dc/elements/1.1/” do
xml.channel do
xml.title “Rss Feeds”
xml.link url_for(:controller => ‘feed’)
xml.description “My Feed Lists”
xml.language(‘en-us’)

@feeds.each do |feed|
xml.item do
xml.title feed.title
xml.link url_for(feed)
xml.author feed.created_by
xml.pubDate feed.created_at
xml.description feed.description
xml.guid url_for(feed)
end
end
end
end
#-----------------
in my controller

def index
@feeds = Post.find(:all,:order=>‘id desc’ ,:limit=>100)
respond_to do |format|
format.xml {render :layout=>false}
end
end

An rss feed IS only XML (if you don’t apply a style sheet)
There is a built-in style sheet for displaying feeds (that don’t have a
style sheet specified) in
IE, Safari and the last version of Firefox (probably you are using an
old version)

Duilio R.

my firefox version is 3.0.1

how to set new stylesheet ?

or any other idea?