Skip to content
Sam Saffron

Writing about software, performance, Ruby, Discourse, and technology.

  • Discourse
  • Ruby
  • MiniProfiler
  • SQL
  • AI

Getting started with Ruby On Rails on Windows

Sam Saffron5 min read

If you have a Windows machine and would like to dabble a bit with rails development the state of affairs is not that grim

As it stands in early 2008 there are a large number of IDEs and tools you can use, getting Rails up and running is not hugely complicated.

Note, there is a one-click installer “coming up”:http://rbazinet.wordpress.com/2007/12/17/whats-coming-in-instant-rails-20-and-beyond-the-road-map/ for Rails on windows. My advice is to avoid it, not because it does not or will not work, but because installing stuff manually gives you better control, and teaches you more along the way.

Get up and running

  • Install “Ruby”:http://rubyinstaller.rubyforge.org/wiki/wiki.pl : Go for version 1.8.X, 1.9 was recently released but it is still a “while”:http://www.postal-code.com/binarycode/2007/12/30/ruby-19-not-for-rails/ before people recommend using it for rails development.

  • Update your Gems - Ruby contains a packaging system which could be likened to a network connected version of windows installer. It manages installation and upgrades of “gems” which are re-usable components. Rails itself is just a collection of gems. Early in the release cycle of Rails 2.0 there was an issue with the Gem system that caused lots of woes installing Rails. To avoid any issues in future just run the following command (from the command line). It will update the gem gem :slight_smile:

 
gem update --system
  • Install Rails - note: gems may depend on other gems, using the include dependencies command allows rails to update all of the dependent gems.
gem install rails --include-dependencies

That’s it Rails is installed, you can now create your first hello world app.

  • If you would like a more “unix-like” development environment - try “cygwin”:http://www.cygwin.com/ it can coexist side by side with a windows native ruby installation. I use cygwin to run rails plugins that do not run in windows native eg. “Backgroundrb”:http://backgroundrb.rubyforge.org/

Get yourself educated

Get yourself tooled up

Choose an IDE

Hope this helps someone out there, let me know if I missed anything or should expand

Updated October 21, 2013

The conversation

Open in Discuss ↗

Have a thought or a question? Join the discussion below with your community account.