Notes on Life, ‘Puters and Hawaii

Using modules with RESTful controllers

I have been using modules with my controllers. If you are following RESTful Rails application development you might end up with lots of skinny controllers. One way of logically grouping your controllers is to use modules.
script/generate controller mymodule/mycontroller
does this for you. But what about routes? In your routes.rb file you would [...]

Xen Virtulization with Debian Linux 4 (It’s easy)

Install Debian 4 just like you normally would. Choose a minimal install with no tasksel features (No Desktop - No Standard). Your finished install OS from this point forward will be referred to as the Host while virtual images will be referred to as Guests (below). I’m just going to tear into [...]

NetBeans Ruby IDE Debugging for Ruby and Rails

Did I mention how cool NetBeans Ruby IDE is yet? David Hansen showed some basic text console debugging at RailsConf but seriously - who wants to mess with walking through running code at the command prompt? Not me.
Today, using the NB Ruby IDE, I walked through some thorny configuration code in ActiveScaffold using [...]

Mac OS X Postfix SMTP Mail Server Configuration

I configured my macbook to accept all local mail and then forward it to my personal email account. This is super useful for testing your local Ruby on Rails ActionMailer. You can send to any made up name @localhost or @my.machine.name and it will end up in your mail box. Here’s the [...]

Compiling Rubinius Ruby Trunk from Source on Mac OS X

Update 09/15/07: You now must use git to install Rubinius.
I installed Rubinius trunk from source last week for fun on the Mac. Having MRI Ruby 1.8.6, Rubinius trunk and JRuby trunk all on my system at once helps in my efforts to contribute to the JRuby project. You can compare output from multiple [...]