search for: applying_entity

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

2008 Mar 28
6
Eager Loading + Confusion
...ff has been blowing up on me so far. Here''s the code in the controller right now: sort_by = params[:sort_by] || ''id'' direction = params[:direction] || ''desc'' @state_agency_grants = Grant.paginate(:all, :include => [:funding_entity, :creator_entity, applying_entity], :order=> "#{sort_by} #{direction}" ,:page => params[:page], :per_page => 50) So yea, passing what to sort by as a parameter, etc etc. :funding_entity is of type FundingEntity while :creator_entity and :appying_entity are of AccountEntity. Some of the params[:sort_by] I'&...