Pagination and routes problem


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.

Oh, sorry, the link was just an example :slight_smile:
Didn’t realize it was an actual link.

Problem is solved, it was an caching issue.
I had to expire the page and now all is well!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs