search for: reo_id

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

Did you mean: rel_id
2005 Nov 02
1
getting pagination to work on joined tables
...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 => ''JOIN...