Skip to content

Instantly share code, notes, and snippets.

@tcocca
Created September 30, 2010 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcocca/604972 to your computer and use it in GitHub Desktop.
Save tcocca/604972 to your computer and use it in GitHub Desktop.
map.resources :users do |user|
user.resources :daily_searches
end
map.namespace :admin do |admin|
admin.resources :leads do |lead|
lead.resources :daily_searches
end
end
#why is http://localhost:3000/admin/leads/1/daily_searches/5/edit getting routed to the app/controllers/daily_searches_controller instead of app/controllers/admin/daily_searches_controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment