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 Viewing Todo Items: Part 1

David Forero
David Forero
5,492 Points

No todo_items folder in app/views/ ?

Hello,

I have no todo_items folder in app/views/ but, I do have the todo_list folder. I just realized this in the current video (Viewing Todo Items: Part 1 minute 2.55)

What step did I skip? This must have been added automatically at some step.

Thank you

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

The controller generator at the very beginning of this video created the folder and basic index view file for todo_items.

David Forero
David Forero
5,492 Points

I ran the bin/rails generate controller todo_items index -p command again and the folder was not created either.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

the -p means "pretend" - it only tells you what it is planning to do. So you have to run it again, without -p this time. Just like Jason did.