Brian Hogan for his informative talk at RailsConf which made the whole process very easy. See Deployment Strategies for Rails on Windows Servers for more detailed information.
Part 1: Installing Rails
Download the one click windows installer. When installing, uncheck 'SciTE' – there are better editors available. Also, make sure ‘Enable RubyGems’ is checked. This is the package manager for Ruby, used to install Rails itself and myriad of other stuff.
Install to 'c:\program files\ruby' (or your installation path), then add ‘c:\program files\ruby\bin’ to your PATH for command line stuff.
Goto ‘Control Panel\System’, select the ‘Advanced’ tab and click ‘Environment Variables’. Look under user variables. If PATH isn’t already defined, click ‘New’.
- Variable name = ‘PATH’
- Variable value = ‘%PATH%;c:\program files\ruby\bin’
Now that we have ruby installed, we can use RubyGems to install rails.
gem install rails --include-dependencies
Yes, it is that easy.
Create your application skeleton and start the server:
Congratulations! You’re now on Rails. Onto Part 2: My-first-app with Oracle...