From 96813a5e508a54257ef03be613a704f1f71af53d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 21 Oct 2023 00:25:50 -0400 Subject: Added quotes database --- app/views/quotes/index.atom.builder | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/views/quotes/index.atom.builder (limited to 'app/views/quotes/index.atom.builder') diff --git a/app/views/quotes/index.atom.builder b/app/views/quotes/index.atom.builder new file mode 100644 index 0000000..66849cc --- /dev/null +++ b/app/views/quotes/index.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