Bummer! You must be logged in to access this page.

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

help needed to start the project

i hve installed but not able to open a project command prompt...pls help me how to cretae a directory named projects?

8 Answers

What Operating system are you on ?

windows vista 64bit

Under your windows start menu you can search for cmd. This will show cmd.exe in the list of options. Right click on it and choose start as admin.

In your command prompt type

cd / 

This will bring you to the root directory

Then navigate to the folder where you want to create the projects directory for example

cd /Users/My Name/

To create a directory with a name projects, type

mkdir projects

I hope this helps !

If there is something different you are trying to chive can you please list the steps you are following.

Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd /

C:>cd /Users/My Name/ The system cannot find the path specified.

C:>mkdir projects

C:>cd /Users/syd

C:\Users\syd>cd /Users/RailsInstaller/ The system cannot find the path specified.

C:\Users\syd>cd /RailsInstaller/

C:\RailsInstaller>1.9.3 [~/Projects]$ '1.9.3' is not recognized as an internal or external command, operable program or batch file.

C:\RailsInstaller>

this wt its showing and m still not able to create a project..

and this is wt im trying to achieve.....1.9.3 [~/Projects]$ as shown in video to start building an app

You need to replace My Name with your computer name. to get into the folder. You can simply create a projects folder in C: root

cd /
mkdir projects
cd projects
rvm use 1.9.3
rvm new treebook

Note: you cna replace treebook with any name you like.

If that dosen't work try replacing rvm with rails in above commands

Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\syd>cd /

C:>mkdir projects A subdirectory or file projects already exists.

C:>cd projects

C:\projects>rvm use 1.9.3 'rvm' is not recognized as an internal or external command, operable program or batch file.

C:\projects>

this is what i am getting..still not able to create project..what do i do??

You are on the right track. Even I am having this error when I run

rvm use 1.9.3

but have you tried running

rails new treebook

this will create the folder treebook in the projects directory and create all the required files.

Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\syd>rails new treebook create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/javascripts/application.js create app/assets/stylesheets/application.css create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/views/layouts/application.html.erb create app/assets/images/.keep create app/mailers/.keep create app/models/.keep create app/controllers/concerns/.keep create app/models/concerns/.keep create bin create bin/bundle create bin/rails create bin/rake create config create config/routes.rb create config/application.rb create config/environment.rb create config/environments create config/environments/development.rb create config/environments/production.rb create config/environments/test.rb create config/initializers create config/initializers/backtrace_silencers.rb create config/initializers/filter_parameter_logging.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/secret_token.rb create config/initializers/session_store.rb create config/initializers/wrap_parameters.rb create config/locales create config/locales/en.yml create config/boot.rb create config/database.yml create db create db/seeds.rb create lib create lib/tasks create lib/tasks/.keep create lib/assets create lib/assets/.keep create log create log/.keep create public create public/404.html create public/422.html create public/500.html create public/favicon.ico create public/robots.txt create test/fixtures create test/fixtures/.keep create test/controllers create test/controllers/.keep create test/mailers create test/mailers/.keep create test/models create test/models/.keep create test/helpers create test/helpers/.keep create test/integration create test/integration/.keep create test/test_helper.rb create tmp/cache create tmp/cache/assets create vendor/assets/javascripts create vendor/assets/javascripts/.keep create vendor/assets/stylesheets create vendor/assets/stylesheets/.keep run bundle install Fetching gem metadata from https://rubygems.org/.......... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Using rake (10.1.0) Using i18n (0.6.5) Using minitest (4.7.5) Using multi_json (1.7.9) Using atomic (1.1.13) Using thread_safe (0.1.2) Using tzinfo (0.3.37) Using activesupport (4.0.0.rc2) Using builder (3.1.4) Using erubis (2.7.0) Using rack (1.5.2) Using rack-test (0.6.2) Using actionpack (4.0.0.rc2) Using mime-types (1.24) Using polyglot (0.3.3) Installing treetop (1.4.15) Using mail (2.5.4) Using actionmailer (4.0.0.rc2) Using activemodel (4.0.0.rc2) Using activerecord-deprecated_finders (1.0.3) Using arel (4.0.0) Using activerecord (4.0.0.rc2) Using bundler (1.3.5) Using coffee-script-source (1.6.3) Using execjs (1.4.0) Using coffee-script (2.2.0) Using thor (0.18.1) Using railties (4.0.0.rc2) Using coffee-rails (4.0.0) Using hike (1.2.3) Using jbuilder (1.5.0) Using jquery-rails (3.0.4) Using json (1.8.0) Using tilt (1.4.1) Using sprockets (2.10.0) Using sprockets-rails (2.0.0) Using rails (4.0.0.rc2) Using rdoc (3.12.2) Using sass (3.2.10) Using sass-rails (4.0.0) Using sdoc (0.3.20) Installing sqlite3 (1.3.8) Using turbolinks (1.3.0) Using uglifier (2.1.2) Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

C:\Users\syd>

ok this is what i got now...what do i do after this?

All right that is good your application is installed now watch this video after 1 min and follow along.

http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/getting-started-with-rails/generate-a-rails-application

I hope this was helpful !

Hello Abhay,

Yes i got it and it seems everything is going good now. Thank you so much for your help. You were wonderful!

Thanks again Farzeen

You are welcome ! (: