On 18.12.2008, at 3:36, Tony Mann wrote:
> The problem is that you have to explicitly declare the finders. I > was imagining something even more automated, where calling an > automagic #foo method would go into params, find the appropriate id, > and do a Foo.get. Furthemore, an #parent method would get the > resource parent, if there is one, and a #resource method would get > the resource instance that the controller is managing, if there is > one. This is just to show that it is not a lot of work to cook something like this. I personally do not use plugins like resource controller, but if you want automagic behavior, resource_controller and friends will be useful for you. This area has been explored for a few years now in the Ruby community, and I guess plugin authors already borrowed all the goodies from each other :) MK --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
