Controller/ URL not working without controller/index

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

I think I figured it out.

I needed to have: map.resources :portfolios

NOT: map.resource :portfolios

(plural, not singular resources)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs