There is a huge difference between class-methods in ruby and static-methods in PHP I dont wanna discuss here.
Anyway your example is very easy:
function index()
{
$this->products =& $this->Product->findProductsForSale();
}
function findProductsForSale()
{
return $this->find([...]);
}
1 to 2 of 2