Sha256: c1878fb1e8b614be34bff1f253827e00feb95d49ae6f6b9f5edc0fabd0d41c77

Contents?: true

Size: 333 Bytes

Versions: 9

Compression:

Stored size: 333 Bytes

Contents

atom_feed do |feed|
  feed.title @site.title
  feed.updated @posts.maximum(:updated_at)
  
  @posts.each do |post|
    feed.entry post, published: post.published_at do |entry|
      entry.title post.title
      entry.content post.content
      entry.author do |author|
        author.name post.author_name
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
storytime-1.2.0 app/views/storytime/posts/index.atom.builder
storytime-1.1.1 app/views/storytime/posts/index.atom.builder
storytime-1.0.7 app/views/storytime/posts/index.atom.builder
storytime-1.0.6 app/views/storytime/posts/index.atom.builder
storytime-1.0.5 app/views/storytime/posts/index.atom.builder
storytime-1.0.2 app/views/storytime/posts/index.atom.builder
storytime-1.0.1 app/views/storytime/posts/index.atom.builder
storytime-1.0.0 app/views/storytime/posts/index.atom.builder
storytime-0.0.4 app/views/storytime/posts/index.atom.builder