2008/11/10 Per Melin <[EMAIL PROTECTED]>:
> Too bad. All I want is to put a name to a path without having to
> repeat myself. The default_routes take care of the routing.
I do not understand semantics of using a namespace here, but
Merb router is sure a TIMTOWTDI[1] thing
match("/:controller")
or
to(:controller => "news") do
match("/:action")
end
or
namespace(:market) do
to(:controller => "market")
end
merb-core/spec/public/router has *a lot* of examples, no documentation
can beat an executable spec people verify framework code against.
[1] http://en.wikipedia.org/wiki/There_is_more_than_one_way_to_do_it
--
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
-~----------~----~----~----~------~----~------~--~---