Sha256: 26d64faf799a356abac0da5e355a3b628fda010aeb387003a28239c46cf6eae3

Contents?: true

Size: 541 Bytes

Versions: 22

Compression:

Stored size: 541 Bytes

Contents

xml.instruct! :xml, :version => "1.0" 
xml.rss :version => "2.0" do
  xml.channel do
    xml.title "#{Spud::Core.site_name} Blog Articles"
    xml.description "Blog 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
        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

22 entries across 22 versions & 1 rubygems

Version Path
spud_blog-0.8.17 app/views/blog/index.rss.builder
spud_blog-0.8.16 app/views/blog/index.rss.builder
spud_blog-0.8.15 app/views/blog/index.rss.builder
spud_blog-0.8.14 app/views/blog/index.rss.builder
spud_blog-0.8.13 app/views/blog/index.rss.builder
spud_blog-0.8.12 app/views/blog/index.rss.builder
spud_blog-0.8.11 app/views/blog/index.rss.builder
spud_blog-0.8.8 app/views/blog/index.rss.builder
spud_blog-0.8.7 app/views/blog/index.rss.builder
spud_blog-0.8.6 app/views/blog/index.rss.builder
spud_blog-0.8.5 app/views/blog/index.rss.builder
spud_blog-0.8.4 app/views/blog/index.rss.builder
spud_blog-0.8.3 app/views/blog/index.rss.builder
spud_blog-0.8.2 app/views/blog/index.rss.builder
spud_blog-0.8.1 app/views/blog/index.rss.builder
spud_blog-0.8.0 app/views/blog/index.rss.builder
spud_blog-0.7.5 app/views/blog/index.rss.builder
spud_blog-0.7.4 app/views/blog/index.rss.builder
spud_blog-0.7.2 app/views/blog/index.rss.builder
spud_blog-0.7.0 app/views/blog/index.rss.builder