# Rss feeds not working help

**URL:** <https://www.ruby-forum.com/t/rss-feeds-not-working-help/133153>\
**Category:** Rails\
**Created:** [March 28, 2008, 11:20am UTC](https://www.ruby-forum.com/t/rss-feeds-not-working-help/133153 "2008-03-28T11:20:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![megax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@megax](https://www.ruby-forum.com/u/megax)\
**Post date:** [March 28, 2008, 11:20am UTC](https://www.ruby-forum.com/t/rss-feeds-not-working-help/133153/1 "2008-03-28T11:20:14Z")

</div>

I had created two rss feeds and they were working perfectly the other  
day but for some reason they now show in an xml tree format when  
displayed.

controller:  
def rss  
@products = Product.find(:all, :order=\> “item\_name”)  
render :layout =\> false  
end

view:  
xml.instruct!

xml.rss “version” =\> “2.0”, “xmlns:dc” =\> “[http://purl.org/dc/elements/](http://purl.org/dc/elements/)  
1.1/” do  
xml.channel do

xml.title “FlashItem products”  
xml.link url\_for :only\_path =\> false, :controller =\>  
‘products’  
xml.description “Items advertised on the FlashItems website”

```
@products.each do |p|
 xml.item do
  xml.title(p.item_name)
  xml.link(url_for :only_path => false, :controller =>

```

‘products’,:action =\> ‘show’, :id =\> (p.id))  
xml.description(p.description)  
xml.guid(url\_for :only\_path =\> false, :controller =\> ‘products’,  
:action =\> ‘show’, :id =\> (p.id))  
xml.pubDate(CGI.rfc1123\_date p.updated\_at)  
end  
end  
end  
end

could something be wrong with the [http://purl.org/dc/elements/](http://purl.org/dc/elements/)  
1.1/ url bit that I believe does the formatting of the feed?
