Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.