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/index.atom.builder | 11 ----------- app/views/quotes/latest.atom.builder | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 app/views/quotes/index.atom.builder create mode 100644 app/views/quotes/latest.atom.builder (limited to 'app/views') diff --git a/app/views/quotes/index.atom.builder b/app/views/quotes/index.atom.builder deleted file mode 100644 index 66849cc..0000000 --- a/app/views/quotes/index.atom.builder +++ /dev/null @@ -1,11 +0,0 @@ -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 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