Forum: Ruby on Rails rss feed is not detected in firefox ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C5c0e0499446b84fd3bcc61cf7862539?d=identicon&s=25 Thani Ararsu (thaniyarasu)
on 2008-11-18 14:12
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 ?
3d6e548fa413cb093009599b24ff51d6?d=identicon&s=25 Duilio Ruggiero (sinetris)
on 2008-11-18 14:42
Thani Ararsu 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 Ruggiero
C5c0e0499446b84fd3bcc61cf7862539?d=identicon&s=25 Thani Ararsu (thaniyarasu)
on 2008-11-19 05:03
Duilio Ruggiero 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 Ruggiero

my firefox version is 3.0.1

how to set new stylesheet ?

or any other idea?
This topic is locked and can not be replied to.