about summary refs log tree commit diff stats
path: root/app/views/quotes/index.atom.builder
blob: 66849cc0f7a4898eeb31c4d044b3287b5858cb1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
atom_feed do |feed|
  feed.title("The Four Island Quotes DB")
  feed.updated(@quotes.first.created_at)

  @quotes.each do |quote|
    feed.entry(quote) do |entry|
      entry.title("##{quote.id}")
      entry.content(quote.content, :type => 'text')
    end
  end
end