Displaying 1 result from an estimated 1 matches for "primary_pict".
2005 Nov 02
1
getting pagination to work on joined tables
...#39;JOIN lang_reos ON reos.id = reo_id'',
:order => ''ref_id ASC'',
:limit => limit, :offset => offset
# and finally I can use :include
@reos = Reo.find reo_ids.collect { |r| r.reo_id },
:conditions => ([''primary_pict=1''] + conds).join('' AND ''),
:include => [:lang_reos, :pictures, :location],
:order => ''ref_id ASC''