From db803440022103bb6d4f7015d87db3b52610223a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 21 Oct 2023 13:39:36 -0400 Subject: Fixed quotes db atom feed --- app/views/quotes/latest.atom.builder | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/views/quotes/latest.atom.builder (limited to 'app/views/quotes/latest.atom.builder') 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 @@ +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 -- cgit 1.4.1