Sha256: d344017ba21f33d0fa3f9f33e1b8fab7f3dac0ebe38d74761e811489a8207296

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

atom_feed(:root_url => blog_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.4 app/views/rails_blog_engine/posts/index.atom.builder
rails_blog_engine-0.0.3 app/views/rails_blog_engine/posts/index.atom.builder