I have a rails application in which i have a namespace in the route as below
map.namespace :admin do |admin|
admin.resources :products
end
I have the controller under app/controller/admin
products_controller.rb has various actions like index, show, edit, new, create, update, destroy
when i try to use the new_admin_product_path, it is pointing to index action rather than new action.
how do i fix this?