Sha256: 790cf31a599c3f81b9768d80a6efc74402f0a5e20a720983058f9783ceb77231

Contents?: true

Size: 449 Bytes

Versions: 18

Compression:

Stored size: 449 Bytes

Contents

xml.instruct! :xml, version: "1.0" 
xml.rss version: "2.0" do
  xml.channel do
    xml.title Setting.first.try(:blog_name)
    xml.description Setting.first.try(:blog_tagline)
    xml.link blog_url

    @posts.each do |post|
      xml.item do
        xml.title post.title
        xml.description post.body
        xml.pubDate post.published_at.to_s(:rfc822)
        xml.link page_url(post)
        xml.guid page_url(post)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
tkh_content-0.3.1 app/views/blog/index.rss.builder
tkh_content-0.3 app/views/blog/index.rss.builder
tkh_content-0.2.1 app/views/blog/index.rss.builder
tkh_content-0.2 app/views/blog/index.rss.builder
tkh_content-0.1.15 app/views/blog/index.rss.builder
tkh_content-0.1.14 app/views/blog/index.rss.builder
tkh_content-0.1.13 app/views/blog/index.rss.builder
tkh_content-0.1.12 app/views/blog/index.rss.builder
tkh_content-0.1.11 app/views/blog/index.rss.builder
tkh_content-0.1.10 app/views/blog/index.rss.builder
tkh_content-0.1.9.3 app/views/blog/index.rss.builder
tkh_content-0.1.9.2 app/views/blog/index.rss.builder
tkh_content-0.1.9.1 app/views/blog/index.rss.builder
tkh_content-0.1.9 app/views/blog/index.rss.builder
tkh_content-0.1.8 app/views/blog/index.rss.builder
tkh_content-0.1.7 app/views/blog/index.rss.builder
tkh_content-0.1.6 app/views/blog/index.rss.builder
tkh_content-0.1.5 app/views/blog/index.rss.builder