Bring up the default view which has no finder conditions applied, this
view is something like 18 pages long.
Move forward through the pages to page 4.
Use a link on the page to move to a filtered version of the data, one
that has less pages.
Since AS remembers that they were on page 4, but this list is only 2
pages long, I get a nil object error from the AS do_list method.
So, in my controller I run a before filter for updating the
table_config. I figure I could add something here that clears out the
page setting, but I'm not sure what to do.
- Mike Karolow
Add the following hack (it certainly feels hackish) in a before
filter:
params[:page] ||= 1
This way, if an action includes a page in the params (like using the
paginator), it will be respected. If not, the page will be reset.