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
Salman patel
1,469 Pointscreating new directory
how do i create new directory and go back to tree house video
12 Answers
Matt West
14,545 PointsHi Salman,
Which course is this for?
If you're looking to create a folder on the command line you can use the mkdir command.
Example:
mkdir foldername
Salman patel
1,469 Pointsthis is for ruby and rails simple application i know that command but after installing ruby and rails kit what would be the first step for me to do .i am using windows not mac
Matt West
14,545 PointsOnce you've got ruby and rails installed you need to generate the rails application using the following command.
rails new treebook
Check out this video :)
http://teamtreehouse.com/library/programming-2/build-a-simple-version-of-facebook/getting-started-with-rails/generate-a-rails-application
Salman patel
1,469 Pointsthanx but i have seen that video so many times but still i don't get what to do with .let's say i ave installed ruby and rails then what would be next step where should i go and what should i open
Matt West
14,545 PointsHi Salman,
Open up your command prompt and use the cd command to move to the folder that you would like to create your application in.
Now use rails new treebook to generate the application. Once that command finishes you should have a new folder in the directory called treebook. Use the command cd treebook to move into the new folder. Now use the ls command to see a list of all the new files and folders that have been created.
You can now open up the treebook folder in your text editor to take a closer look at the files, or just continue on with the course. Make sure that you are in the treebook folder when you issue the git commands in the next video.
Salman patel
1,469 Pointsyou know what i have managed to create new directory but when i write rvm use 1.9.3 it 's says 'rvm' is not is not recognized with internal or external command what should i do now
Matt West
14,545 PointsRVM is only available for Mac/Linux.
If you have already installed ruby you should be okay skipping the rvm steps.
If you want to be able to manage multiple versions of Ruby on Windows take a look at pik.
https://github.com/vertiginous/pik/
Salman patel
1,469 PointsThat's great thank you I will try it
Salman patel
1,469 Pointsnow i have generated application but when i type that http://0.0.0.0:3000 in browser window it comes up with nothing
James Barnett
39,199 PointsA few notes using Ruby on Rails on Windows ...
- To start Rails type
rails s - Then open up your browser to:
127.0.0.1:3000 - To stop the Webbrick server use
CTRL-Break
Both the rvm and 0.0.0.0 only apply if you are working on a Mac.
Salman patel
1,469 Pointseverthing is working fine and getting along with project ,,,thanx guys ,,,,,,does any one know how to create an ordering system in ruby and rails with shopping cart
Matt West
14,545 PointsYou might want to take a look at Spree (http://spreecommerce.com/)