search for: lang_reo

Displaying 1 result from an estimated 1 matches for "lang_reo".

Did you mean: lang_reos
2005 Nov 02
1
getting pagination to work on joined tables
...o :conditions on joined tables. I''m not able to do pagination in such association. Only solution I came up with is this beast: # I set up a paginator: @reos_pages = Paginator.new self, Reo.count(conds.join('' AND ''), ''JOIN lang_reos ON reos.id = reo_id''), RECS_PER_PAGE, params[:page] # then I find out which ids count on for current page limit, offset = @reos_pages.current.to_sql reo_ids = Reo.find :all, :conditions => conds.join('' AND ''), :joins...