feed.atom.builder 377 Bytes
Newer Older
Milan's avatar
Milan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
atom_feed do |feed|
  feed.updated(@blogposts.first.updated_at)

  @blogposts.each do |blogpost|
    feed.entry(blogpost, :url => blog_url(blogpost)) do |entry|
      entry.title(blogpost.title)

      entry.author do |author|
        author.name('The wonderful World of Illuna')
      end

      entry.content(markdownify(blogpost.content), :type => 'html')
    end
  end
end