I want to group routes into hierarchies. To that end I have created a top level controller thus:
MyApp.controllers :group do
disable :layout
get '/' do
{'dummy' => 'value'}.as_json
end
end
Now I want to create routes with :group
as parent thus:
MyApp.controllers :items, :parent => :group do
disable :layout
get '/', :provides => :json do
# get list of items
end
end
My problem is that I can access localhost:port/group
(200 OK
) from my REST client but I cannot access localhost:port/group/items
(404 NOT FOUND
).
Everything works beautifully if I remove the :parent
option. My padrino version 0.10.5.5. Any ideas?