Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Rails Application

Joel Buzzanco
PRO
Joel Buzzanco
Pro 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
Pro 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)