On Jan 18, 2011, at 1:59 PM, walter wrote: > >> but the problem is that you have two controllers. Perhaps you should have >> only one. > > I have thought about it. Unfortunately, I need sometimes show all our > customers but at the next time I need view all them trips. I would be > glad to do merge two controllers into the one. But I cannot figure out > how to determine which of the tables need use in that, or otherwise > case?
One way: http://app/default/show/tablename ...where show is the function, and tablename is args[0]. That is, make the function the action you're requesting, and the argument(s) the object you're going to do it to. Or go ahead and repeat yourself; it's only a venial sin.