Probably one of the most used RubyOnRails extensions will use the rails 3 upgrade to introduce some major internal changes as well. Just in case you have implemented your own renderer which inherits from WillPaginate::LinkRenderer, be prepared to update your code. Apart from the fact that the namespace changed to WillPaginate::ViewHelpers::LinkRenderer, the implemented methods and names changed as well.

In the one case I am working on right now, the protected page_link method has been replaced by link(text, target, attributes = {}). So if you are seeing any errors like “undefined constant WillPaginate::LinkRenderer” have a look at the source code!

  1. namxam posted this