I have a user that is a data admin for products. -...
# general
r
I have a user that is a data admin for products. - I want add a link to the spree/admin/products controller - what path would I use in the users menu?
Copy code
admin_products_path
does’nt seem to work
j
you can always run
rails routes
to get a list of the routes (and it supports options for searching for the desired route)
admin_products_path
is correct, I'm pretty sure, so depending on where you're rendering it may need to be prefixed with
spree.
r
thats where i found admin_products_path @Jared Norman - seems am on the right path - let me dig a bit more
spree.admin_products_url - this worked