Sha256: 8bebd376a992342e73bfc9ec6996ba8e0a17c9858bd44e5c59e97c873f227621

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
  xml.channel do
    xml.title "#{Spud::Core.site_name} News"
    xml.description "News articles for #{Spud::Core.site_name}"
    xml.link news_url(:format => :rss)

    for article in @posts
      xml.item do
        xml.title article.title
        xml.description article.content_processed
        xml.pubDate article.created_at.to_s(:rfc822)
        xml.link news_post_url(article.url_name)
        xml.guid news_post_url(article.url_name)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spud_blog-1.0.2 app/views/news/index.rss.builder
spud_blog-1.0.1 app/views/news/index.rss.builder
spud_blog-1.0.0 app/views/news/index.rss.builder
spud_blog-1.0.0.rc1.1 app/views/news/index.rss.builder
spud_blog-1.0.0.rc1 app/views/news/index.rss.builder
spud_blog-0.9.11 app/views/news/index.rss.builder