I'd suggest keeping that logic in the model...maybe create a method on your model for getting "grand_total".
This blog post should give you a better idea of why you'd want this kind of logic in the model: http://railstips.org/2008/12/30/move-it-to-the-model-and-use-tiny-methods --~--~---------~--~----~------------~-------~--~----~ 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-talk@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 -~----------~----~----~----~------~----~------~--~---