views:

26

answers:

0

I have a resource called products and I believe it should create url helpers for products_path ("/products") and product_path ("/products/1"). While I get the first one, I cannot use the second. The error message says:

No route matches {:controller=>"products", :action=>"destroy"}

It appears to think I want to use the destroy action with the url. What am I doing wrong?