Paginating Problema :(

I’ve done paginating a lot, and it works great. But for some reason,
this time, it paginates fine, but the Next Page link doesn’t work - it
adds the ?Page=2 but it doesn’t actually display the next page, it
displays the first page still.

What process actually happens when you hit next page? Does it reload
the action you’re in? What could the potential problem be?

Thanks,
Ben L.

Ben L. wrote:

I’ve done paginating a lot, and it works great. But for some reason,
this time, it paginates fine, but the Next Page link doesn’t work - it
adds the ?Page=2 but it doesn’t actually display the next page, it
displays the first page still.

What process actually happens when you hit next page? Does it reload
the action you’re in? What could the potential problem be?

Thanks,
Ben L.

The real problem is that I have a threaded forum written in one
controller, and I want to actually display all of it’s actions in a div
of another controller.

So when I load my main controller, it calls the thread controller to
‘list’ all threads. The pagination is in the thread controller’s ‘list’
action. The problem is that when I call :page =>
@thread_pages.current.next it thinks I’m trying to change the page of
something on my main controller, not on thread controller (at least
that’s what I think?)

I want to keep the controllers separate, for organization, and if
possible I’d like to display the thread controller in the view of my
main one (with the pagination of threads).

What do I do?