Hi everyone I'm using the following code to map my resources for my products controller:
map.namespace :admin do |admin|
admin.resources :products
end
In my view I'm using
link_to 'Edit', edit_admin_product_path(product)
which results in the URL /admin/products/1/edit
when I'm clicking on the link I'm getting
Unknown action No action responded to 1
so I guess it doesn't properly map it to the edit action I have no idea what to do
I would be very thankful for any help on this issue