Sha256: a6bcfdee7ecf49cb729b030624ae17d496bc4306d933d4b0b1baef99f92c5fab
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 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.name 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bongo-0.1.0 | app/views/bongo/articles/index.rss.builder |