How to create "custom" fields in Model? like sum, based on quantity
and price.
I guess it should be something like:

        def summ
                price * quantity
        end
Am I right?

If so, How to use them in :conditions parameter of the
ActiveRecord::Base::find method? Is it possible it all?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to