about summary refs log tree commit diff stats
path: root/app/views/quotes/latest.atom.builder
blob: d389a5868eb4aba9d4c2dd97f88f45a9b6a24d43 (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_format(quote.content), :type => 'html')
    end
  end
end