The same way i did it in the image example i gave you . also watch this http://railscasts.com/episodes/16-virtual-attributes
the thing is you can add methods to the models and they become available as if they were attributes, they are virtual attributes so oyu can have in your product model. def tax price * tax_percent/100 end and then you can do @product = Product.find (params[:id]) @product.tax and @product .tax you return the something like US$15.00 -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

