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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
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
(Guest)
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.