Category Archives: Rails

Multiple file upload with: Rails, File_Column plugin and MooTools

Recently, I had to come up with a multiple file upload form that works with the file_column plugin. My site was already using mootools as it’s main JS framework so I wanted to come up with a solution that would be mootools friendly.
Luckily, I found this great mootools plugin that handles multiple file upload in […]

Best setup for Rails, PHP and MySQL on a small VPS

Anyone who is on a small VPS (256mb in my case) knows how resources can run low pretty quickly! Especially if you are trying to run both a Rails site and a PHP site on it. Pretty much any stack you chose (whether it is nginx with mongrel, or lighttpd with fastcgi or mongrel etc..) […]

Quick post about Rails DB relationships…

One mistake that I always seem to make is when it comes to choosing between a has_one/belongs_to relationship or simply a belongs_to relationship… I always forget which one should be used in which situation. Well now I’m writing it here so hopefully I remember!
Case 1)
has_one/belongs_to example: Let’s use an example to illustrate when this relationship […]

Netbeans Ruby IDE kicks ass!

I decided to give netbeans ruby ide a try for my new rails project, after having read a lot about it on blogs (especially this post on LifeOnRails). At first I thought it was a bit slow, but it turns out the nightly build I was using had some problems. I downloaded a new one […]