ActiveRecord: Using the "type"-column

September 21st, 2007Posted by benediktFiled in Articles, Ruby on Rails

By default it’s not possible to use a database-column called “type” for anything else than single table inheritance. To change this, simply use set_inheritance_column() and read_attribute():

   1  class TypeTest < ActiveRecord::Base
   2    set_inheritance_column(:something_else)
   3  
   4    def type()
   5      read_attribute(:type)
   6    end
   7  
   8    def type=(value)
   9      write_attribute(:type, value)
  10    end
  11  end

Up From The Ground '07 - Day 1

August 25th, 2007Posted by benediktFiled in Other

I’m currently in Gemünden visiting the Up From The Ground Festival to shoot some photos. The weather is – unlike last year – great. Unfortunately the light on stage isn’t that good and it’s hard to achieve good results. In addition I’ve some auto-focus trouble with my Sigma lens and the security guys have strange instructions (they only allow ten people for two songs in the photopit, and then again ten people for another two songs … that’s just 20 of about 60 photo accreditations this year). As a result I’ve only done a few photos … here are some of them:

Arch Enemy

Illdisposed

Sonic Syndicate

That’s it for now … maybe I’ll upload some more tomorrow … :-)

Developer Abuse

August 21st, 2007Posted by benediktFiled in Agile Development

Watch this (sad) video on YouTube. It’s the winner of the Agile Advert video contest. The other videos are available at agileadvert.org [ via ]

ClockingIT

August 14th, 2007Posted by benediktFiled in Other, Ruby on Rails

Since last week I’m using ClockingIT to track the time I spent on client-projects. Some of the features are (taken from clockingit.com ):
  • time tracking & reports
  • milestones & due dates
  • timeline & activity log
  • notifications, rss & iCal
  • integrated wiki
  • english, brazilian, french, german, spanish & norwegian languages

The application is totally free. You’re able to download the sources or simply register an account … Oh, and by the way: it’s a rails-app … ;-)

Now working for Bytebetrieb

August 13th, 2007Posted by benediktFiled in Other

I’m now working for the mac-fans at bytebetrieb.com. Thanks to Moritz and Stefan — who contacted me using Xing — for giving me the chance to do some useful stuff! ;-) I’m primarily working with their in-house CMS called Fast Publishing System (FPS). Check out their website and blog!