Sha256: b2f969487ef1aabb8e117c5c6c5b648c0a6accdbfb254e51f8020782fa913100
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
atom_feed( :url => articles_url(:format => 'atom'), :root_url => root_url, :schema_date => '2008' ) do |feed| feed.title Hubbub::Config[:title] feed.updated @articles.empty? ? Time.now.utc : @articles.collect(&:updated_at).max feed.generator "Hubbub", "uri" => "http://github.com/rapodaca/hubbub" @articles.each do |article| feed.entry(article, :url => article_url(article), :published => article.created_at, :updated => article.updated_at) do |entry| entry.title article.title entry.content article.body_html, :type => 'html' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hubbub-0.0.8 | lib/app/views/articles/index.atom.builder |
hubbub-0.0.6 | lib/app/views/articles/index.atom.builder |