nested routes problem when using friendly_id with 2-sided marketplace app
I want to use Friendly_Id gem with the tutorial to make urls pretty. But When I created the Order scaffold and nested it under products. I edited the orders_controllers as per tutorial. It keeps giving me error "Could not find product without ID". I read the gem documentation.
I also tried used friendly.find instead of find. But it doesnt work.
Code in my Product Model:
friendly_id :name, use: [:slugged, :finders]
I am using product name as slug.
I would like to know how to proceed further with Orders using friendlyId.
Posted about 4 years ago by