diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-21 00:25:50 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-21 00:25:50 -0400 |
| commit | 96813a5e508a54257ef03be613a704f1f71af53d (patch) | |
| tree | a50f5c8dc27304a3ca27366b6268a72804727e16 /app/views/quotes/index.atom.builder | |
| parent | 2a7a19c93ee0e0d77e4e388d43f36a721c7ab715 (diff) | |
| download | thoughts-96813a5e508a54257ef03be613a704f1f71af53d.tar.gz thoughts-96813a5e508a54257ef03be613a704f1f71af53d.tar.bz2 thoughts-96813a5e508a54257ef03be613a704f1f71af53d.zip | |
Added quotes database
Diffstat (limited to 'app/views/quotes/index.atom.builder')
| -rw-r--r-- | app/views/quotes/index.atom.builder | 11 |
1 files changed, 11 insertions, 0 deletions
| 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 @@ | |||
| 1 | atom_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 | ||
| 11 | end | ||
