Forum: Ruby on Rails controller/ URL not working without controller/index

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
on 2009-04-30 12:03
(Received via mailing list)
I'm following a book. It tells me to use: map.resource :controllername
in routes

But, once I do that, for some reason my main controller/index doesn't
work if I don't have "/index" behind it.

Anyone know why that would be? It just gives me:

Unknown action

No action responded to show. Actions: create, edit, index, and new
on 2009-04-30 18:49
(Received via mailing list)
I think I figured it out.

I needed to have: map.resources :portfolios

NOT: map.resource :portfolios

(plural, not singular resources)
This topic is locked and can not be replied to.