Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

when using scaffolding it should be CommentsController, not CommentController

#6643

I am a novice into Rails world, so i was going through http://guides.rubyonrails.org/getting_started.html and when i did 'rails generate controller Comment', in the controllers/ folder it created file comment_controller.rb with a class called CommentController. However the application threw me 'Routing error' everytime i tried to comment. I've found out it should be comments_controller.rb with CommentsController class. Can you check this out?

My Rails version is 3.0.5.

--edit-- I've found that i had to write 'generate controller Comments' from the beginning - it is said in the guide. I think the ticket is invalid. Sorry for inconvenience.

Reported by sindikat · March 29th, 2011 @ 02:21 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Andrew White
    Andrew White
    • State changed from new to invalid
    • Importance changed from to Low

    March 29th, 2011 @ 04:22 PM

  2. Santiago Pastorino