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 bit of problem when I tried tagging an object with the tags “cool mac 2008″. [...]
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 experience with this in use on a busy site. Also looking forward to some of [...]
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 HTML of the application to Rails layout templates and partials.
Extracting HTML from Firefox DOM
We first started [...]
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 placed a second server there and we’re planning a full migration to XS4ALL in [...]
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. The code wrapper class looks like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require ‘rubygems’
require_gem ’session’
class MediafileInfo
[...]
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 nice chapter on Web Services. This article also shows what you can expect [...]
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! Technically the end of the month is still 86400 seconds away. This behaviour [...]
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 years is quite hard. However, I’m convinced now that Rails on top of lighttpd + [...]
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 benefits of having better control of the Rails processes and the supposed easy clustering setup [...]
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 InvalidStatement exception. You would have to actually search your database logs for the error message. [...]