Sha256: cf76b7bf61d173e3f85f6fdfe710d20d86d6c38347b14bf18d99a030b08d16d0

Contents?: true

Size: 407 Bytes

Versions: 39

Compression:

Stored size: 407 Bytes

Contents

atom_feed(:language => I18n.locale.to_s) do |feed|
  feed.title Setting.first.blog_name || t('blog.itself')
  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.body, type: 'html'
      entry.author do |author|
        author.name post.author.name
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
tkh_content-0.9.12 app/views/blog/index.atom.builder
tkh_content-0.9.11 app/views/blog/index.atom.builder
tkh_content-0.9.10 app/views/blog/index.atom.builder
tkh_content-0.9.9 app/views/blog/index.atom.builder
tkh_content-0.9.8 app/views/blog/index.atom.builder
tkh_content-0.9.7 app/views/blog/index.atom.builder
tkh_content-0.9.6 app/views/blog/index.atom.builder
tkh_content-0.9.5 app/views/blog/index.atom.builder
tkh_content-0.9.4 app/views/blog/index.atom.builder
tkh_content-0.9.3 app/views/blog/index.atom.builder
tkh_content-0.9.2 app/views/blog/index.atom.builder
tkh_content-0.4.7 app/views/blog/index.atom.builder
tkh_content-0.9.1 app/views/blog/index.atom.builder
tkh_content-0.9 app/views/blog/index.atom.builder
tkh_content-0.4.6 app/views/blog/index.atom.builder
tkh_content-0.4.5 app/views/blog/index.atom.builder
tkh_content-0.4.4 app/views/blog/index.atom.builder
tkh_content-0.4.3 app/views/blog/index.atom.builder
tkh_content-0.4.2 app/views/blog/index.atom.builder