RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: Marcus64
I have tested this advanced search method for my application and it's working fine.
My question is how can i implement field calculation in that model?
Example for products models showing here, if i need to have "totals of products selected", "total product's cost" and "average cost", where can i put these calculation methods?