Installing Ruby and Rails on Windows
May be you heard about the web framework ruby on rails, and you want to give ti a try. Well, this post describes how you install ruby and rails on a windows computer in less then 10 minutes.
Installing Ruby
First you need to install ruby.
- Download the latest ruby version from http://www.ruby-lang.org/en/downloads/ .
- Execute the installer.
- Add the Path to the ruby executable to your PATH. (You find detailed description how to expand the PATH here.)
Install Gem
Gem is the ruby packet manager. We need it beecause rails is a gem itself.
- Download the latest version ruby gems from http://rubyforge.org/frs/?group_id=126
- Exctract the archive
- Navigate on a command shell to the top directory (This directory contains the file setup.rb)
- Execute the setup file with the command : ruby setup.rb
Installing rails
We already installed ruby and the gem packet manager. The last step is that we install rails itself.
- Open a command shell.
- Type the command : gem install rails.
That’s it ! If you want to test your installation just type on your command shell the following command.
rails myapp
This should create a rails app skeleton with the name myapp.
jazzanowak @ March 16, 2008
Oh no, it was a small spelling mistake:
config.action_mailer.delivery_method = :smtp
instead
config.action_mailer.delivery_method = :smpt
in development.rb
BTW: thanks for the link to the rails tutorials.
You should definitely mention
http://railscasts.com/
Step 2 - Installing gems on Windows 2008/Windows 2003 - requires you to run the command shell as administrator or otherwise you will get the permission denied error.