This is frustrating the hell out of me!
I have an application in which the controllers are split into two
groups, public and private.
In my routes file, I''ve split them into namespaces:
map.namespace :private do |private|
private.resources :batches
private.resources :cities
...
end
and so on.
When I run rake routes, it tells me what I expect to see:
private_batches GET /private/batches
{:controller=>"private/batches", :action=>"index"}
...
But if I go to /private/batches I get the error message:
No route matches "/private/batches" with {:method=>:get}
It''s probably something really obvious that I''m missing but
can anyone
help out?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---