I have an app that will be making a customer list to go in a pdf. The pdf part wasn't bad using wicked_pdf. The problem is keeping the controller code where it belongs.
The app has a print method in the controller. It does a render partial to loop through each customer. Once there it needs to make lists of attendance for each of the last 3 years to be part of each customers page. This is different for each customer, so it needs to be re-run each time. This is the part I want to get out of the view. Any way to have another method in the controller to be run for each customer?