I am using friendly_id for my Product model. Here's my routes :
resources :products, only: :show
scope '/dash' do
resources :products
end
Now when I go to the edit action, I used friendly ID to load the correct form. The edit form loads correctly. But when I submit it, it gives an error like this :
No route matches [PATCH] "/products/P011700714"
How can I fix this?
The form for tag :
<%= form_for( edit_product_path(@product) ) do |f| %>