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?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---