search for: find_all_by_year_and_household_id

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

2010 Aug 02
1
Any way around using only 1 render per action?
...y around this, and is the render I''m using totally necessary?? Here is my controller code. @households = Household.find(:all, :order => "last_name, first_name") @households.each { |@household| @today = Date.today @year = @today.year @thisyear = Visit.find_all_by_year_and_household_id(Date.today.year, @household.id) @lastyear = Visit.find_all_by_year_and_household_id(Date.today.year-1, @household.id) @yearbefore = Visit.find_all_by_year_and_household_id(Date.today.year-2, @household.id) render( :action=>:printone) } date=`date +%Y%m%d-%H:%M` resp...