Sha256: cb4e46a46dff9650214cc69fc994fe09b66ef877e0cba116c93b9f75c06e7a0b

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 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_permalink_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

3 entries across 3 versions & 1 rubygems

Version Path
hubbub-0.0.11 lib/app/views/articles/index.atom.builder
hubbub-0.0.10 lib/app/views/articles/index.atom.builder
hubbub-0.0.9 lib/app/views/articles/index.atom.builder