I put everything in a pastie to make it a bit more readable:
This is the gist:
Will_paginate doesn’t play quite nice. The first result set is fine,
and when I click on one of the paginated links, it returns the following
Couldn’t find DictatedExam with ID=filter_widget
observe_field triggers filter_widget which calls the paginated search…
Which is then rendered in a partial.
Why do things simple when you can do it complicated, right ?