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
Zachary Warrner
746 Points'Generate a Rails Application' video - Question
(FYI - Link to video I reference below: http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/getting-started-with-rails/generate-a-rails-application)
I'm currently going through 'Getting Started with Rails' and have a question after watching the 'Generate a Rails Application' video. Around 20 seconds into the video, the narrator says he has already created a directory for his projects (called 'Projects') that will contain the treebook application. My question: If I want to create a separate directory like the narrator did, does it have to be in any specific folder? I'm using Windows and have successfully installed and configured Rails on my machine up to this point by following along while watching the previous videos. Right now the default directory when I open a command prompt is C:\Sites. I just want to make sure that if I create a new directory called 'Projects' it won't "break" everything I've configured so far. Hope this makes sense.
3 Answers
Zander Perry
2,227 PointsYou can make project directories wherever your heart desires.
william kenny
5,428 Pointsstupid thing I found when working through that project, it's best to use the command prompt with ruby and rails link in the install folder. Otherwise a lot of the stuff won't work (no idea why.)
If you want to use a shell for cmd, i just started to use console but needed to make a shortcut and add this target C:\Console2\Console.exe -r "/E:ON /K C:\RailsInstaller\Ruby1.9.3\setup_environment.bat C:\RailsInstaller"
the -r is the console shortcut to then run a command and the rest is straight copied from the original cmd with ruby and rails shortcut
Now i'm stuck and my DB won't create but oh wells...
Paul Carter
12,543 PointsSorry if I'm not understanding the replies to this, but I'm stuck at the same point. I am on Windows and my cmd prompt reads C:\users\Paul which doesn't accept the text of "$ rvm use 1.9.3" or any variation I can find.
There is the hint in the shownotes:
"It is also not necessary to type the 'rvm use' command on Windows."
but I still can't get it to do anything other than display:
"'[term]' is not recognized as an internal or external command operable program or batch file."
but I have commanded "rails new [excalibur]" and can't seem to do anything else.
Thanks
Paul Carter
12,543 PointsOK JUST got this to work - typed "rails new excalibur". Totally didn't watch the video.