Sha256: b4d4be61e6278fae324ecd6aff6a63e525369043195eaab71ee429021f567e16

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

xml.instruct! :xml, version: '1.0'
xml.rss version: '2.0' do
  xml.channel do
    xml.title 'My Blog'
    xml.description 'My Blog Description'
    xml.link comfy_blog_posts_url(@cms_site.path)

    @blog_posts.each do |post|
      url = comfy_blog_post_url(@cms_site.path, post.year, post.month, post.slug)

      xml.item do
        xml.title post.title
        xml.description "blog post content"
        xml.pubDate post.published_at.to_s(:rfc822)
        xml.link url
        xml.guid url
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_blog-2.0.2 app/views/comfy/blog/posts/index.rss.builder
comfy_blog-2.0.1 app/views/comfy/blog/posts/index.rss.builder
comfy_blog-2.0.0 app/views/comfy/blog/posts/index.rss.builder