about summary refs log tree commit diff stats
path: root/app/views/quotes/latest.atom.builder
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-21 13:39:36 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-21 13:39:36 -0400
commitdb803440022103bb6d4f7015d87db3b52610223a (patch)
treeb8b78deb39f7ee1a9e9484e4d8e769f1553fde9a /app/views/quotes/latest.atom.builder
parent76acaf441208279355fb913afff06618c7d5dfbd (diff)
downloadthoughts-db803440022103bb6d4f7015d87db3b52610223a.tar.gz
thoughts-db803440022103bb6d4f7015d87db3b52610223a.tar.bz2
thoughts-db803440022103bb6d4f7015d87db3b52610223a.zip
Fixed quotes db atom feed
Diffstat (limited to 'app/views/quotes/latest.atom.builder')
-rw-r--r--app/views/quotes/latest.atom.builder11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/quotes/latest.atom.builder b/app/views/quotes/latest.atom.builder new file mode 100644 index 0000000..66849cc --- /dev/null +++ b/app/views/quotes/latest.atom.builder
@@ -0,0 +1,11 @@
1atom_feed do |feed|
2 feed.title("The Four Island Quotes DB")
3 feed.updated(@quotes.first.created_at)
4
5 @quotes.each do |quote|
6 feed.entry(quote) do |entry|
7 entry.title("##{quote.id}")
8 entry.content(quote.content, :type => 'text')
9 end
10 end
11end