Skip to content

Instantly share code, notes, and snippets.

@joshuaclayton
Created August 4, 2008 13:28
Show Gist options
  • Save joshuaclayton/3889 to your computer and use it in GitHub Desktop.
Save joshuaclayton/3889 to your computer and use it in GitHub Desktop.
map.namespace :admin do |admin|
# users
admin.resources :users
# product classifications
admin.namespace :products do |admin_products|
admin_products.resources :product_groups, :has_many => [:product_lines]
admin_products.resources :product_lines
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment