Create a test application¶
- Create a folder on the desktop called
ruby_on_rails
- Open git bash (Start Menu -> All Programs -> Git -> Git Bash) and type the following with a return at the end of each line:
cd ~/Desktop/ruby_on_rails
rails test_app
- The first command should produce no output. The second command's output should look similar to this: Output of "rails test_app" command. ([[What to do if you get rails: command not found]])
- Then, type the following in git bash with a return at the end of each line:
cd test_app
ruby script/server
- The first command should produce no output. The second command's output should look similar to this: Output of "ruby script/server" command. This command won't return you to the prompt; it will just sit there until you kill it (2 steps from now).
- In your browser, go to http://localhost:3000 ([http://wiki.devchix.com/images/successful-rails-install.jpg screenshot of successful install])
- In your git bash window where you ran
ruby script/server, do a control-c to kill the server.
Loading...