On May 26, 2:46 pm, RonPhillips <[email protected]> wrote:
>
>
> I can do that with Bruce William's Paginator gem (http://
> groups.google.com/group/rubyonrails-talk/browse_frm/thread/
> 7267090150ef6cc7/5c75c93d0324f356). However, will_paginate is the de
> facto standard.
>
> How do we get semantically-meaningful page links using will_paginate?
> Or should I stick with the paginator gem?

You can supply a custom LinkRenderer class to will_paginate, which
controls how page links are displayed. You might need to do some
messing around in order to get the data for each page link - i think
the link renderer is given the will paginate collection object and the
fact that this is the link for page 23. Does it matter that if there
were suddenly a lot of articles about a given subject that you'd then
have several page links all with the same title ?

Fred
>
> Ron

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to