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

Adam Kempin
Adam Kempin
9,586 Points

New Ruby on Rails on Windows install, going great until cmder error when trying to run "rails new example.app", error

C:\Users\raptor\Documents λ rails

 '' is not recognized as an internal or external command, operable program or batch file.

set PATH=c:\windows\system32;c:\windows

set PATH=c:\windows\system32;c:\windows;c:\Ruby\bin

start "Rails on Windows" /D c:\rails The current directory is invalid.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Treehouse should not produce videos that show people how to use Rails on Windows. This encourages people to try and is almost like saying "yeah, sure, you can use Windows for Rails development, no problem". But Windows always causes lots of problems with Rails development, you really should try installing Ubuntu on dual boot or through VMWare Player.

2 Answers

I personally spin up a brand new fresh install of vagrant with puppet to provision to mimic development on a clean linux box. This allows you to ensure a clean working box w/o any trouble. I never develop Ruby on Windows since I've always had some type of trouble.

Nathan Elliott
Nathan Elliott
16,232 Points

Hello,

You put the command in as "rails new example_app" not "rails new example.app" right?

I agree with JoJo and Maciej. A virtual box running linux is easier to work with than Windows in my opinion.