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 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,437 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,437 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.