Controller issue with plurals

I have a controller named main and it’s mapped through routes.rb

when I link to “main_path” I get this error:

uninitialized constant MainsController

I tried creating a MainsController and mapping that but didn’t seem to
help.

GP

What methods do you have in your MainsController?

On Sep 18, 12:58 pm, Grayson P. <rails-mailing-l…@andreas-

the usual index, create, update, destroy; whatever generate controller
does by default.

Bobnation wrote:

What methods do you have in your MainsController?

On Sep 18, 12:58�pm, Grayson P. <rails-mailing-l…@andreas-

How are you mapping it in the routes.rb?

Have you tried map.resources :main?

On Sep 21, 10:50 pm, Grayson P. <rails-mailing-l…@andreas-

Ryan B. wrote:

How are you mapping it in the routes.rb?

map.resource :main