Tag Archives: rails

has_many_polymorphs tagging snafu

I’m working on a Rails 2.0.x project which is a port of a 1.2.x based one. Since acts_as_taggable was obsoleted in 2.0.x I’m using the ultra wicked has_many_polymorphs plugin which comes with a neat Tagging generator. I ran in a … Continue reading

Posted in Home | Tagged , , , | Leave a comment

Ruby En Rails 2007 Conference

On June 7th the Ruby En Rails 2007 Conference will be held here in Amsterdam. I’m really looking forward to meeting up with the dutch Rails crowd. I’ll be giving a lighting talk on Mongrel clustering and will share my … Continue reading

Posted in Home | Tagged , , , , | 4 Comments

Rewriting a (large) PHP application in Rails, part 2

In my previous post on this topic I described the method we used to convert a legacy MySQL PHP database to a Rails conformant PostgreSQL hosted version. In this article I will tell a bit about how we converted the … Continue reading

Posted in Home, rails | Tagged | 7 Comments

XS4ALL Crazy Colo Night history

At the last Crazy Colo Nights of XS4ALL we wrote a little history. It seems we were the first customer ever to bring their server for immediate placement! That’s actually the first dedicated Rails server of my company!! We’ve already … Continue reading

Posted in Home | Tagged , , , | 7 Comments

Using MPlayer identify with Ruby

For a project I need to fetch some metadata from WAV recordings. Mplayer can extract this information nicely with the -identify command. I’m using Ruby Sessions for executing the external mplayer command, although a simple IO.POpen() might do fine too. … Continue reading

Posted in Home | Tagged , , | 4 Comments

Rails Show and Tell

Gave a small presentation at the Rails Show And Tell meeting. I covered Web services with Rails. Actually it was more a of an introduction to Web Services, it was a lightning talk anyway The Rails online manuals has a … Continue reading

Posted in Home | Tagged , | Leave a comment

Rails’ end_of_month

Whilst building the payment module for one of my Rails apps I used the very convenient Rails’ Time extension method end_of_month returns the last day of the month. However it sets the time to 00:00:00, which is quite unexpected IMHO! … Continue reading

Posted in Home | Tagged , | 2 Comments

Typo on Lighttpd

This blog has been running on lighttpd since last week. So far it seems to be the best setup for running Rails app. Of course everyone in the Rails world alread knew this but breaking the Apache habit after 8 … Continue reading

Posted in Home | Tagged , , , | 1 Comment

Apache2 + SRR = Crash and Burn?

Well, it turns out Apache2 + SCGI is not a good match, at least not the way I set it up, by following all the (scarce!) documentation on the subject. I used the SCGI Rails Runner package for running. The … Continue reading

Posted in Home | Tagged , , , | Leave a comment

ActiveRecord InvalidStatement

It seems that ActiveRecord cannot return sane errors when some constraint on a database operation is not met, for instance if you forget to set an attribute which has a “NOT NULL” constraint. If this happens AR simply throws an … Continue reading

Posted in Home | Tagged , , | Leave a comment