Sha256: e33f81d53eced2cf1130df2b029e1808e1c2c82b763162312eccfbb5f5d94028

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

xml.instruct! :xml, version: "1.0"
xml.rss version: "2.0" do
  xml.channel do
    xml.title (Front.config.name rescue "My Blog")
    xml.description (Front.config.description rescue "A bongo blog")
    xml.link root_url

    @articles.each do |article|
      xml.item do
        xml.title article.title
        xml.description ActionView::Base.full_sanitizer.sanitize(article.text).truncate(180)
        xml.pubDate article.publish_at.to_s(:rfc822)
        xml.link article_url(article)
        xml.guid article_url(article)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bongo-0.2.0 app/views/bongo/articles/index.rss.builder
bongo-0.1.1 app/views/bongo/articles/index.rss.builder