[Rails] Re: uninitialized constant WillPaginate::LinkRenderer
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.
On Jul 20, 7:22 am, Fernando Perez <li...@ruby-forum.com> wrote:
> 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 viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home