On 22 June 2010 07:42, Bob Smith <bsm...@gmail.com> wrote: > 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.
Sounds like the Customer model might make a good place for the method to live. In the view you can call @customer.go_get_my_data ... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.