Sha256: 2a8af214b8f4def56f23cd84588d2b3b0f8bb6639e844b7c58d6a804188112c6
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
xml.instruct! :xml, version: '1.0' xml.rss version: '2.0' do xml.channel do xml.title "#{TbCore.site_name} Blog Articles" xml.description "Blog articles for #{TbCore.site_name}" xml.link posts_path(format: :rss) for article in @posts xml.item do xml.title article.title xml.description strip_tags(article.content_processed).truncate(250) xml.pubDate article.created_at.to_s(:rfc822) xml.link post_path(article.url_name) xml.guid article.id end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tb_blog-1.4.4 | app/views/posts/index.rss.builder |
tb_blog-1.4.3 | app/views/posts/index.rss.builder |
tb_blog-1.4.2 | app/views/posts/index.rss.builder |