Thanks for the replies Derek and Jon. I found what I was looking for in the merb_datamapper gem( merb_datamapper.rb:31):
Merb::Router.root_behavior = Merb::Router.root_behavior.identify (DataMapper::Resource => :id) Cheers Adam On Jan 20, 5:38 am, Derek Williams <[email protected]> wrote: > Did you generate your routes using resource? If so, you should be able > to do something like this: resource(@post, :comments) to get the url. If > not, you can do url(:post_comments, :post_id => @post.id) > > Derek --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
