Sha256: 335015e1928daaae80bcbfd50431f29868dfaddb54c41d2068b10673f71bc40f

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

atom_feed do |feed|
  feed.title @title
  feed.updated @updated

  @posts.each do |post|
    feed.entry post do |entry|
      entry.title post.title
      entry.content formatted_body(post.body), type: 'html'
      entry.updated(post.updated_at.strftime("%Y-%m-%dT%H:%M:%SZ"))
      entry.author do |author|
        author.name post.author
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blabs-0.4.4 app/views/blabs/blog_posts/feed.atom.builder