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
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?
Ryan B. wrote:
How are you mapping it in the routes.rb?
map.resource :main
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs