> If you ask me, binding resource information to the model is idiotic,  
> as the model is NOT the resource, it's a sub-set of it.
> But hey, we work with what we've got ;-)

Yes, I would prefer a solution like this:
in router.rb
resources locations, :default_param => ":id-:name"
so when the you call url(:location, location), it will fill it in with
"/location/3-san_diego" rather than force everything to using the id "/
location/3"

This solves the issue of search/replacing all the url methods already
used and the default resource routes are preserved.

But Merb doesn't support this way?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to