Ruby On Rails with Windows Vista - Best Setup? [closed] Ruby On Rails with Windows Vista - Best Setup? [closed] windows windows

Ruby On Rails with Windows Vista - Best Setup? [closed]


I don't know about "best", because that's a subjective question, but I can tell you what setup I use and recommend:

Editor: E Text Editor
TextMate seems to be the editor of choice for Rails on Mac. E Text Editor is essentially TextMate for Windows. Its bundles are broadly compatible with TextMate's including the Rails 2 bundle which is included with the basic install.

Alternatively, if you're into the whole Visual Studio ecosystem, then Ruby in Steel PE might be a better bet. It's a really nice all-in-one package that actually comes with (a stripped-down version of) Visual Studio now.

Environment: VirtualBox running Ubuntu Server
Deploying a Rails app can be a pain at the best of times; deploying a Rails app from a Windows environment onto a *nix server is even worse. Plus, running Rails apps on Windows is slow. Running your tests is slow. So I use VirtualBox to host a VM on my Windows machine that mirrors my target deployment environment as closely as possible. In my case I run Ubuntu Server because there are a really nice set of step-by-step tutorials for getting up-and-running with a full Ubuntu-based Rails stack on the SliceHost wiki.

Here are the benefits of developing using a VM:

  • I map a network drive to the VM so that I can edit the code on it directly from Windows using E Text Editor. The VM acts and feels just like a command line window. So you don't feel like you're in a completely alien environment.
  • It runs Rails and other Ruby scripts (like tests) faster than running it natively in Windows
  • Everything is contained and snapshottable, so I can experiment and generally play around without worrying about breaking anything. If something does break, I just roll back to a previous good state.
  • It uses hardly any RAM. It will typically use less that 100MB (it's currently using ~43MB, but I don't have a Rails app spun-up). Contrast this with, say, Firefox which will typically be hogging >200MB and you realize that running a Linux-based VM like this is amazingly efficient.
  • I can move my environment between machines
  • I have much more robust deployment workflow
  • I can limit the VM to have exactly the same amount of RAM as the server I'll be hosting on. E.g., if I'm to be using a SliceHost 256MB slice, I would limit the RAM to 256MB.
  • I can build a seperate environment for different hosts. If I wanted to host on Joyent, for example, I could build an Open Solaris VM
  • Gems and other binaries won't need recompiling for your target environment
  • It's "a good thing"™ to get to grips with the environment your Rails app is likely to be running on. Seeing as most, if not all, commercial Rails hosts run some sort of *nix derivative, you're going to want to be comfortable with the *nix environment.


e-texteditor seems to be growing as the editor of choice for rails development on ruby. Too bad it isn't free.

Aside from that, the RailsOnWindows guide works fine. And Sqlite is by far your best choice for development: RailsWithSqlite


NetBeans is definitely recommended if you like IDEs. It has a lot of Ruby features and there's a Ruby only download.