You can also choose to install Ruby on Rails on cygwin. There are some benefits since cygwin acts a bit like linux/mac environment on PC.
c:\cygwin)c:\cygwin-files)
As with Linux, you can put some aliases in your /home/your_username/.bashrc to have them available at all times. Here are some examples:
# Shorten commonly used commands alias srv='script/server' alias mig='rake db:migrate' alias log='tail -f log/development.log'
# Mount custom directory to your cygwin environment # You can then access these directories using cd /rails and open one by default mount -f -u -b "C:\MyRailsProjects" "/rails" cd /rails
If you're using e-Texteditor you can also put this in your .bashrc to simplify opening projects:
alias e='cygstart e'
Now you can use “e .” inside your /rails/myapp directory to open it as a project.
Using http://sourceforge.net/projects/console/ is a great way to manage multiple cygwin consoles. Install Console and set it up to open cygwin by default. You can also skip this step and use the default cygwin console.
You'll want to setup cygwin as a Console Tab. Go into the settings and click “Add” under “Tabs”. Use the following as the “Shell”.
c:\cygwin\bin\bash --login -i
If you want it to automatically open cygwin when you start Console, move it to the top of the Tabs list.
Grab the latest rubygems from Sourceforge. Save the file into your home directory (c:\cygwin\home\your_username\). Extract the archive and install rubygems using:
tar xvfz rubygems-1.3.1.tgz cd rubygems-1.3.1 ruby setup.rb
Now that you have RubyGems installed you can install Rails using
gem install rails
Follow other tutorials for installing additional gems.
Discussion