Hello all…
I’m new in Ruby on Rails. I’m doing an application which needs to use
pagination. This is ok. I got to use it and I didn’t find any error. But
I’ve got to put a city names “research” too. That’s the problem. The
pagination failed. the variable doesn’t take its value. Below it’s my
city’s list:

Ok, thanks a lot… I’ll try that. Just to know, my problem is like
described below:

How would I redirect a will_paginate link to a different, nested
resource?

For example, on the entries page I am paginating entries and it works
just fine. On the home page, I am also paginating entries, but only the
first 10 results. If you click next, I would like the user to be sent
to page 2 of the entries page.

The following does not work, as I am trying to go to
/journals/:id/entries?page=2

Code : - fold - unfold

:params => { :controller => “journal”, :action => “index” }

It instead leads to /entries/index/3?page=2. Basically, I am trying to
send it: