uninitialized constant WillPaginate::LinkRenderer

94 views
Skip to first unread message

Fernando Perez

unread,
Jul 20, 2010, 7:22:43 AM7/20/10
to rubyonra...@googlegroups.com
This is becoming painful. Where the file should be? What should be in
it? I am running will_paginate 3.0.pre

Here is my current code sitting in initializers/

class WillPaginateRenderer < WillPaginate::LinkRenderer
def rel_value(page)
"nofollow"
end
end

Thanks for your help,
--
Posted via http://www.ruby-forum.com/.

David

unread,
Aug 8, 2010, 1:02:00 AM8/8/10
to Ruby on Rails: Talk
This became painful for me too, until I inspected the class hierarchy
of the new will paginate. You need to extend
WillPaginate::ViewHelpers::LinkRenderer instead.

Fernando Perez

unread,
Aug 8, 2010, 5:11:55 AM8/8/10
to rubyonra...@googlegroups.com
David wrote:
> This became painful for me too, until I inspected the class hierarchy
> of the new will paginate. You need to extend
> WillPaginate::ViewHelpers::LinkRenderer instead.

Thanks! It should be better documented when they break things.

Reply all
Reply to author
Forward
0 new messages