On 18.12.2008, at 0:34, Tony Mann wrote:
> On a related note, it would be great to have a #resource method in > Controller that would grab :id from params and instantiate the > class. No more foo = Foo.get(id) all over the controller code! Here you go: http://gist.github.com/37243 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 -~----------~----~----~----~------~----~------~--~---
