Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Scaffold

I named my scaffold Trick_Log and when I tried to find the url it was under localhost:3000/trick_logs. Why?

I figured it out because of the error page rails generated in my browser show paths to trick_logs but I'm still confused. Was is the capitalization?

I am on windows, using windows powershell.

1 Answer

Seth Reece
Seth Reece
32,867 Points

Rails automatically prluralizes things for you. If you make a scaffolding called foobar, it will create a path structure such as:

/foobars - shows all the foobars /foobar/new - create a new foobar /foobar/create - called as a post to create the newly made foobar in the database /foobar/edit etc. etc.