This project is archived and is in readonly mode.

#6643 ✓invalid
sindikat

when using scaffolding it should be CommentsController, not CommentController

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

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages