Sha256: 17b2d84b360f92c635029f9a8b61b07ba6715a69f3e606e1f502d6e1dbaf2610

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

atom_feed(:root_url => root_url, :url => feed_url) do |feed|
  feed.title t('rails_blog_engine.blog.title')
  feed.updated @posts.map(&:updated_at).sort.reverse.first
  @posts.each do |post|
    feed.entry(post, :published => post.published_at,
               :url => post_permalink_url(post)) do |entry|
      entry.title post.title
      entry.content markdown(post.body), :type => 'html'
      entry.author do |author|
        author.name post.author_byline
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.2 app/views/rails_blog_engine/posts/index.atom.builder
rails_blog_engine-0.0.1 app/views/rails_blog_engine/posts/index.atom.builder