El Tue, 10 Nov 2009 10:31:13 -0800 (PST)
deostroll <deostr...@gmail.com> escribió:

>  Is there a recommended way to do this...?

Yeah: write an instance method in your "Stock" class (model) that returns
exactly that and call it from the template.

Remember: there shouldn't be any data processing in the presentation layer.

-- 
P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar>
http://gonzalodelgado.com.ar/

Attachment: pgpVGngMDm9rd.pgp
Description: PGP signature

Reply via email to