You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why it does that, but having the product_id twice means I can't find the product from the params (since params[:product_id] == ['2','2']
new_product_order_path(product)
behaves the same way.
new_product_order_path(product.to_model)
generates the right URL, but seems to go against the simple delegation pattern - why do I have to remember where I need a model and where I need an exhibit? It's like a duck with a speech impediment. ;-)
This feels like it is probably Rails doing some kind of type-checking, but so far I can't confirm.