You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
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.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
On Oct 4, 2013, at 6:18 AM, Akhil K. wrote:
> 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.
Kaminari does this out of the box, and is a drop-in replacement for Will Paginate. You might want to investigate that route.