Sha256: 46dd3beee239f72abcc4193f1c55a1bf2b919248c2853124ef365ef910be9e88

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
  xml.channel do
    xml.title "#{Spree::Config[:site_name]}"
    xml.description "#{Spree::Config[:cms_rss_description]}"
    xml.link posts_url(:format => 'rss')
    
    @posts.each do |post|
      xml.item do
        xml.title post.title
        xml.description post.body
        xml.author post.user.display_name
        xml.pubDate post.published_at.to_s(:rfc822)
        xml.link post_url(:id => post)
        xml.guid({:isPermaLink => "false"}, post_url(post))
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_cms-0.0.4 app/views/posts/index.rss.builder
spree_cms-0.0.3 app/views/posts/index.rss.builder