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

justin alexis
justin alexis
373 Points

stuck on create_spec.rb

when i type in touch spec/features/todo_lists/create_spec.rb i keep getting the error:

touch:can't touch 'spec/features/todo_lists/create_spec.rb' no such filed or directory.

i have no clue what im doing wrong here

2 Answers

Jesse James
Jesse James
6,079 Points

Justin-

Typically this happens when you're trying to specify the path where you want to create the file you're 'touching' and one of the folders in your path doesn't match up to what the system actually sees. Double check that the path is correct (spelling, folder order, etc.). I've had this happen before when I'm either not in the proper starting folder (trying to touch spec/... when I'm already in the spec folder) or simply mis-typed the folder names.

justin alexis
justin alexis
373 Points

thank you for the tip. I went back and noticed an spelling error.