am trying to make a controller called Categories have subdirectories such as Fridges, Backpacks etc. Currently my setup works so that when browsing to 'categories/fridges/index', the index page from the fridge view page is shown. I want this page to appear when navigationg to 'categories/fridges'. Currently that page shows: "The action 'show' could not be found for CategoriesController".
I have set up my routing like so:
map.namespace :categories do |categories|
categories.resources :fridges
end
I have also tried matching '/fridges' to 'fridges#index' within the namespace but to no avail.