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
Peaches Stubbs
21,320 PointsGenerate a Rails Application
In the above listed video, the instructor says that he has already created a directory. I assume that that is where he is working from, and I assume that I need to do the same thing. How do I go about this? Do I simply create an ordinary folder and go from there ?
12 Answers
Garrett Flanagan
5,142 PointsI'm afraid this has confused me as well... I've opened a command prompt in windows, opened a folder I want to use, tried the "rvm use 1.9.3". and it says "rvm is not recognized as a command" Can you help me with the first part of this video. I've already completed console foundations and I still can't figure it out
Sander de Wijs
Courses Plus Student 22,267 PointsThat's right!
Mike Morales
19,833 PointsPeaches -
You can right click on your desktop and simply create your folder, or you can type in mkdir projects in your console, and then type in cd projects, and its that easy. Hopefully, you've already figured it out by now. Good luck!
Sander de Wijs
Courses Plus Student 22,267 PointsI ran into that issue also. Try opening the Ruby console instead of te Windows command prompt. Go to Windows -> programs -> Ruby -> Ruby command prompt.
Sander de Wijs
Courses Plus Student 22,267 PointsOn Windows you will proberaly have a problem running a server in Ruby at http://0.0.0.0:3000. This is a windows related issue. To solve this I set up a Linux virtual machine in Virtualbox. This is where I do my Ruby learning.
Garrett Flanagan
5,142 Pointsthanks Alot Sander..... as expected I ran into the second problem you mentioned as well
Mike Morales
19,833 PointsSander & Garrett,
Attention Windows Users You should access port 3000 with the following address 127.0.0.1:3000 rather than 0.0.0.0:3000.
Sander de Wijs
Courses Plus Student 22,267 PointsHi Mike,
While running the server is says the adress is 0.0.0.0:3000. If I try the Windows 127.0.0.1:3000 adress there is an error message:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add gem 'sqlite3' to your Gemfile.
Rails.root: C:/wamp/www/treebook/treebook
Sander de Wijs
Courses Plus Student 22,267 PointsFound the solution! You have to edit the gem.lock file and remove the additional information (-x86-mingw32) after sqlite3 , so it just says (4.0.2). More info in this article on Stackoverflow. http://stackoverflow.com/questions/17350837/ruby-on-rails-add-gem-sqlite3-to-your-gemfile
Mike Morales
19,833 PointsWhat version of Ruby and Rails are you running? I'm running ruby 1.9.3p484 and rails 3.2.16. I also noticed your Rails.root: C:/wamp/www/treebook/treebook is different. I have my directory set up as workspace/treebook. Did you follow the videos as is? I didn't have any issues with my Gems. Hopefully, things work out for you!
Sander de Wijs
Courses Plus Student 22,267 PointsHey Mike,
First off, Happy Holidays!
I am using Ruby version 2.0.0-p353-x64 with Rails 4.0.2. Apart from the newer version of Ruby and Rails I followed all the steps in the video.
Peaches Stubbs
21,320 PointsThanks for the responses guys, and I'm glad that this is helping other people resolve their issues as well.