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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Simon Walsh](https://secure.gravatar.com/avatar/f8fe09b72c6402c8475ca4fc43d47e81?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Simon Walsh
Courses Plus Student 1,741 PointsRoutes in this movie
I notice Jason has many more routes on 'rake routes' than I have. He only generated the todo_items controller with index, not edit show etc etc....where did all these routes come from?
1 Answer
![Joshua Shroy](https://uploads.teamtreehouse.com/production/profile-photos/1154582/micro_10178049_10153962814105307_4997387502770376443_n.jpg)
Joshua Shroy
9,943 PointsHi Simon,
Jason created all of his routes when he nested resources :todo_items
under resources :todo_lists
.
Resources creates the collection of routes for index, show, edit, destroy etc. for a specific controller. If you want :todo items
to only have a single route for show
, then you can specify that like this:
get 'todo_items', to: :show
Simon Walsh
Courses Plus Student 1,741 PointsSimon Walsh
Courses Plus Student 1,741 PointsThanks bro. I worked this out a little later. I rushed through to quickly so my bad. Many thanks for getting back to me. Much appreciated Joshua
Simon