Sha256: 9aa532e6c535770bafa33312e1d75d2b5cd0e214c8090d57896391535b36d288

Contents?: true

Size: 662 Bytes

Versions: 15

Compression:

Stored size: 662 Bytes

Contents

xml.instruct! :xml, :version => "1.0" 
xml.rss :version => "2.0" do
  xml.channel do
    xml.title @blog.name
    xml.description @blog.description
    xml.link blog_url(@blog.slug)

    for article in @articles
      xml.item do
        xml.title article.title
        xml.description article.excerpt || article.body
        xml.pubDate article.created_at.to_s(:rfc822)
        unless article.featured_image.blank?
          xml.image (article.featured_image.url)
        end
        xml.link blog_article_url(:blog_id => @blog.slug, :id => article.slug)
        xml.guid blog_article_url(:blog_id => @blog.slug, :id => article.slug)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.6.3 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.6.2 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.6.1 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.6.0 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.9 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.8 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.7 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.6 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.5 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.4 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.3 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.2 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5.1 app/views/gluttonberg/public/blogs/show.rss.builder
gluttonberg-core-2.5 app/views/gluttonberg/public/blogs/show.rss.builder