search for: render_to_pdf

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

2010 Aug 02
1
Any way around using only 1 render per action?
...= 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` respond_to do |format| format.pdf { send_data render_to_pdf( :action => ''print'', :layout => ''pdf_report''), :filename => "Household_List_for_" + date } as the name says, print_one does 1 page of the report for 1 user. It needs t...