On Mon, 19 Jan 2009 15:34:03 -0800 (PST) Adam Groves <[email protected]> wrote:
> > I'm working on a small ORM which I'd like to use with merb and I'm > stuck on getting routes to recognise my objects. > > Running url(:post_comments, :post_id => @post) returns this: posts/ > #<Postt:0x242e454>/comments. How can I get the identify method in > route.rb (merb-core) to use the @post's id in the route? I'd be > grateful for any pointers. > > Cheers > > Adam Hi Adam I suggest you read: http://wiki.merbivore.com/howto/router http://wiki.merbivore.com/development/router To get an idea of how it works, and then look in one of the current ORM plugins to see an easy shortcut for making that the default for all ORM resources of that type. Regards Jon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
