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.
Fcf6328e679123eb81f8576eae5e8f74?d=identicon&s=25 (Guest)
on 2009-04-30 10: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
Fcf6328e679123eb81f8576eae5e8f74?d=identicon&s=25 (Guest)
on 2009-04-30 16: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.