Couldn't find Category with 'id'=id

When i click my link_to, it takes to http://localhost:3000/categories/id rather than http://localhost:3000/categories/1. When I put the 1 into the URL it then takes me to the correct page, but I want it to work through the link, and so i suspect it is a routing issue. These are my routes resources :categories, only: [ :index,… Read More Couldn't find Category with 'id'=id