From 42222e338636dceaf6db289fa81b62038af145ee Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Fri, 16 Oct 2009 08:15:59 +0100 Subject: [PATCH] Added pubDate to feed view --- .gitignore | 6 ++++++ app/views/feed/show.rss.builder | 1 + 2 files changed, 7 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a04c2d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*~ +*log +database.yml +*doc +tmp/* + diff --git a/app/views/feed/show.rss.builder b/app/views/feed/show.rss.builder index dd8f41d..88c0dd8 100644 --- a/app/views/feed/show.rss.builder +++ b/app/views/feed/show.rss.builder @@ -11,6 +11,7 @@ xml.rss :version => "2.0" 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 -- 2.34.1