ResourceFeeder in Rails 1.1.6
September 28th, 2006
So you’ve seen Ryan Daigle’s article on ResourceFeeder and you want all that RSS goodness. However, you are using Rails 1.1.6 and don’t want to move to edge at the moment.
All you need to do is install the ResourceFeeder and SimplyHelpful plugins:
./script/plugin install resource_feeder ./script/plugin install simply_helpful
Then create the following directory:
vendor/plugins/resource_feeder/lib/simply_helpful
and copy this file:
vendor/plugins/simply_helpful/lib/simply_helpful/record_identifier.rb
to this new directory. You can then delete the simply_helpful directory.
Now open this file:
vendor/plugins/resource_feeder/lib/resource_feeder.rb
add this line:
require 'simply_helpful/record_identifier'
Save and quit. The last thing you need to do is add an url_for method to the controller you make the call to rss_feed_for from. This will be something like:
def post_url(post) return url_for(:controller => 'posts', :action => 'view', :id => post) end
Voila, RSS for almost free…......
November 25th, 2007 at 11:18 PM Looks like 'vendor/plugins/resource_feeder/lib/record_identifier' above should be 'vendor/plugins/resource_feeder/lib/simply_helpful/record_identifier.rb'
November 25th, 2007 at 11:18 PM Hi Rich, thanks for pointing that out. Actually it should of been: vendor/plugins/resource_feeder/lib/resource_feeder.rb. I've updated the post. Cheers Scott