I found a solution or work around:
on top your controller, right after class Controller <
ApplicationController put this:
before_filter :session_conditions
and then at the bottom
protected
def session_conditions
@condition = "table_name.field_name = '#{params[:id]}'" if !params
[:id].nil?
end
On Mar 12, 1:25 pm, GreatJohn <[email protected]> wrote:
> Paging isn't working properly forconditionsfor collection. I'm
> looking for a fix to that issue as well. Please post back here if you
> find something.
>
> On Mar 10, 12:35 pm, tatyree <[email protected]> wrote:
>
> > I've done some scrounging, but can't seem to find exactly what I'm
> > after. I've got several conditions_for_collection being set in my
> > controller that exclude various records. The total number of records
> > show is correct, but the pagination is out (82 records, 25 perpage,
> > showing 6 pages on the firstpage). Do I need to pass an explicit
> > count to prevent this from happening?
>
> > Cheers,
> > Todd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---