RSS feed for blog entries


#1

Can someone guide me on the process of providing an RSS feed for my
site? I’m not sure how to go about this. Thanks.


#2

Ryan - here’s the gist of it:

  • build an action in your controller called ‘rss’ or whatever you
    would like it to be.
  • ‘rss’ will act like your typical ‘list’ actions
  • use a Builder template to general valid XML to send to the users
    when the call “/controller_name/rss”.

I highly recommend downloading Typo and looking at the ‘xml’
controller. That should give you a hand.


#3

Or read http://wiki.rubyonrails.com/rails/pages/HowtoGenerateARSSFeed