Forum: Ruby on Rails Pagination and routes problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Maarten H. (Guest)
on 2006-04-21 10:20

I have the following problem, my pagination links do not work.
At the bottom of my blog the links say: http://myblog/?page=2, ?page=3,
But they don't seem to work. When I add the name of the controller, they
work: http://myblog/log?page=2.

Any suggestions?

I made a new route like this:
map.connect "page/:page",
              :controller => "log",
              :action => "index"
That does work, but you have to enter the route first in the browser:
http://myblog/page/2, after that the links work great. But when I reload
index page, the links at the bottom again say http://myblog/?page=2.
How can change this so they also say http://myblog/page/2 on my index

Any help would be great.

Maarten H.
Maarten H. (Guest)
on 2006-04-21 14:05
Oh, sorry, the link was just an example :-)
Didn't realize it was an actual link.
Maarten H. (Guest)
on 2006-04-21 15:22
Problem is solved, it was an caching issue.
I had to expire the page and now all is well!
This topic is locked and can not be replied to.