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 Generate a Rails Application

Joel Buzzanco
PLUS
Joel Buzzanco
Courses Plus Student 2,738 Points

bin not recognized as a command?

When I type bin/rails server in cmder and the command prompt applications, it returns that bin is not recognized as an internal or external command. He does this without a problem in the video at about 14:06.

I don't know what is wrong. I am in the projects/ODOT directory. please help, thanks.

Joel Buzzanco
Joel Buzzanco
Courses Plus Student 2,738 Points

I figured it out -- when i use the command ''' rails server ''' instead of what was said in the video it works. It was suggested in another question on treehouse https://teamtreehouse.com/community/what-do-i-do-if-my-windows-command-line-returns-bin-is-not-recognized-as-an-internal-or-external-command-operable-prog

1 Answer

Eric Welch
Eric Welch
20,754 Points

I changed directory to /bin then typed the rails/server command and got it to work.

I'm not sure one way is better than the other.

I'm running the same setup as you with rails 5.0 (which I would guess is why the code in vid doesn't work exactly as typed)