Added routes, display seems to work so long as you remove the forms from the views.
[feedcatcher.git] / app / views / feed / show.rss.builder
diff --git a/app/views/feed/show.rss.builder b/app/views/feed/show.rss.builder
new file mode 100644 (file)
index 0000000..88c0dd8
--- /dev/null
@@ -0,0 +1,18 @@
+# show.rss.builder
+xml.instruct! :xml, :version => "1.0"
+xml.rss :version => "2.0" do
+  xml.channel do
+    xml.title @feed_name
+    xml.link feed_url(@feed_name, :rss)
+    xml.description "The #{h @feed_name} feed"
+
+    for item in @feed_items
+      xml.item do
+        xml.title item.title
+        xml.description item.description
+        xml.guid item.id, :isPermaLink => 'false'
+        xml.pubDate(item.updated_at.to_s(:rfc822))
+      end
+    end
+  end
+end