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 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)