Valid RSS 2.0 Feed Template for Rails

If you like Atom more than RSS use the [atom\_feed\_helper](http://github.com/rails/atom_feed_helper/tree/master). Here's the template, modify it to fit your needs. I know there are plugins and other ways of doing this, but I hate code that gets too abstract: ```ruby Code Snippets - Aktagon http://snippets.aktagon.com/ Share your code with the world. Allow others to review and comment. en-us <%= @snippets[0].created_at.rfc822 %> <%= @snippets[0].created_at.rfc822 %> http://blogs.law.harvard.edu/tech/rss Aktagon Snippets <% for snippet in @snippets %> <![CDATA[<%= snippet.title %>]]> <%= snippet_url(snippet) %> ]]> <%= @snippets[0].created_at.rfc822 %> <%= snippet_url(snippet) %> <% for tag in snippet.tags%> ]]> <% end%> <% end %> ``` Remember to serve the feed with the [correct HTTP headers](http://www.petefreitag.com/item/381.cfm). It also helps to have an auto-discovery tag inside the head tag: ```ruby ```