Sha256: 2995bf9dfd8d3464e03012c4d10c3af60ecf7e371c5cb7716643d00ba3bdc743
Contents?: true
Size: 581 Bytes
Versions: 14
Compression:
Stored size: 581 Bytes
Contents
xml.instruct! :xml, :version => "1.0" xml.rss :version => "2.0" do xml.channel do xml.title "#{@blog.title}" xml.description "Latest articles from #{@blog.title}" xml.link "#{@blog.feed}" @posts.each do |article| xml.item do xml.title article.title xml.description article.content xml.pubDate article.publication_date.to_s(:rfc822) @url = "#{request.protocol}#{request.host}#{":#{request.port}" if request.port}" xml.link "#{@url}#{article.path}" xml.guid "#{@url}#{article.path}" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems