Forum: Ruby on Rails Rails will_paginate friendly URL

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7c43469b0ec0884d55572c35e273526a?d=identicon&s=25 Akhil K. (akhil_k)
on 2013-10-04 12:18
Hello,

  I have a model called book and this book will have many pages. For
displaying the pages i have used will_paginate. It is working fine but i
wanted to change the url. right now url is like
"http://localhost:3000/books/book1?page=4". I have a title for each
pages. So instead of page number i wanted to display page_title, like
"http://localhost:3000/books/book1/title_page1".

Let me know if anybody customised will_paginate gem? Please give me
example if you have done this.

Thanks
Akhil
A47e0a6beeb9d048ff054fc1c3a97418?d=identicon&s=25 Walter Davis (walterdavis)
on 2013-10-05 05:52
(Received via mailing list)
On Oct 4, 2013, at 6:18 AM, Akhil K. wrote:

> example if you have done this.
Kaminari does this out of the box, and is a drop-in replacement for Will
Paginate. You might want to investigate that route.

Walter
This topic is locked and can not be replied to.