Rails in a Windows World
My day job consists of writing both Windows applications or web applications that run on Windows web servers. Most of my code is C# and using SQL Server 2005 to store the data, it pays the bills. I have been working with Ruby on Rails for the past year to year an a half. I really like Rails as it is very well thought out and implements some very nice standard patterns of application architecture, namely MVC (model view controller). I have tried many ways to run Rails but keep trying to come back to what I know, Windows. My journey consisted of :- Linux (virtualized) - I used a Virtual PC at first and install Fedora Core, Debian, Suse and Ubuntu, installed Ruby, gems and Rails, no problem.
- Linux (native) - I setup both Fedora and Ubuntu, installed Ruby, gems and Rails, no problem.
Rails on Windows
I decided instead of forcing myself into Linux or some cousin thereof, I would stick with Windows and figure out the best way for me to do Rails development. There are a couple different ways to get Ruby and Rails running on Windows. You can either install each individual component (Ruby, Ruby Gems, Rails) or install as a package or stack. The easiest way to get up-and-running fast is to download and install Instant Rails. I have to give these guys credit, they take all of the work out of getting a full Rails implementation running on Windows. InstantRails includes everything you need; Ruby, Ruby Gems, Rails, Mongrel (web server), MySQL, phpMyAdmin and some sample applications. You have the full environment so you can install whatever gems you may need. I decided to use Instant Rails in conjunction with setting up and running Rails separate, primarily for the experience and to have the most flexibility on my system. I started with installing Ruby (One-Click installer) and Ruby Gems and then installing Rails from the command line, like this:gem install rails --include-dependenciesand that was it. In both Instant Rails and the native install I also install Rake and Capistrano. Rake is a nice build utility that allows you to write your scripts in Ruby and Capistrano will help deploy your applications. These are also installed using gem install. Replacing TextMate was a lot easier than I thought it would be. I found E-Text Editor. It is in beta as I write this but is truly useful as-is. You can see how much it looks like TextMate, including a ton of bundles.
Technorati Tags: Ruby on Rails, InstantRails, Rake, Capistrano, ETextEditor, RubyInSteel, CastleProject, MonoRail
4 Comments : 08.01.07
Similar Posts
- Ruby on Rails 2.0.1 Available now
- 10 Alternative Ruby Web Frameworks
- Great Ruby Development Environment for Windows
Feedbacks
Thank you. It is getting easier and easier to get started with Ruby and Ruby on Rails using Windows.
I didn't mention IronRuby in this post as I had mentioned it in a previous post. I just started using IronRuby and it is in very early stages but looks promising. I plan to port Rails over to it once IronRuby is a better state. I think Microsoft is doing a good thing bringing Ruby on the CLR.
Well, for me the only problem I can see on Instant Rails(teh same guys you gave credit) is that their tool doesn't give the chance to install only what you need. I got some tools like apache and Mysql already installed 'couse I usually use them with PHP. wouldn't it be nice if I Only could Install the tools I don't have already?.
Well, for me the only problem I can see with Instant Rails(the same guys you gave credit) is that their tool doesn't give the chance to install only what you need. I got some tools like apache and Mysql already installed 'couse I usually use them with PHP. wouldn't it be nice if I could Only Install the tools I don't have already?.
» Trackbacks & Pingbacks
http://accidentaltechnologist.com/trackback.ashx?id=149

#1
jeffro
08.02.2007 @ 12:12 AM
Great posting! I've been interested in getting started with Ruby one of these days as well - thanks for the tips on getting started.
Have you heard/peeped of the IronRuby project John Lam is working on? He's released a preview of it on his blog...