For some reason I like to work with older versions Rails :). This paginating_find plugin is written to use newer version of Rails’s alias method chaning, which will not work with Rails 1.1.6. If you install paginating_find in your vendors folder and start your server you will get error something like this
../vendor/plugins/paginating_find/lib/paginating_find.rb:11:in `included’: undefined method `alias_method_chain’ for #<Class:ActiveRecord::Base> (NoMethodError)
from /Users/railsapp/config/../vendor/plugins/paginating_find/lib/paginating_find.rb:8:in `class_eval’
from /Users/railsapp/config/../vendor/plugins/paginating_find/lib/paginating_find.rb:8:in `included’
from /Users/railsapp/config/../vendor/plugins/paginating_find/init.rb:1:in `include’
So here it is My tweak to make paginating_find plugin work with Rails 1.1.6 (This assumes you have followed the plugin install steps from Alex’s blog ).
Just replace alias_method_chain line in paginating_find.rb file with following
self.send :alias_method, :find_without_pagination, :find
self.send :alias_method, :find, :find_with_pagination
This technique works with any alias_method_chain backward compatibility to older version of Rails. I have posted similar post for attachment_fu make it work with Rails 1.1.6 here
Hope that helps.