Rails 2.0 outSection: Ruby on Rails
How to add text to uploaded attachment_fu imageSection: Ruby on Rails
Ever wanted to put a copyright on every picture users upload? If you use attachment_fu to handle your uploads, and RMagick as image processor, its really easy to do.
You could do it like pointed in this article, but whit this method, you have to copy-paste the watermark_image method for every attachment_fu model that you have. A simpler way would be to place the function in the attachment_fu plugin itself.
How to has_many :through with 1 target table and multiple join tablesSection: Ruby on Rails
This is probably not something everyone will need, but I did, and I lost quite some time figuring out how to do it.

This is what we want to do:

A user can be interested in several sports, but some of the sports are 'passive' (only watches them on tv) and others are 'active' (plays them).  We want an easy way to present the user with a checkbox grid where he can indicate if he plays the sport actively and/or passively.
Sections 
- PHP (1)
- General (2)
- Ruby on Rails Snippet (3)
- Ruby on Rails (13)
- HTML (1)
- Css (1)
- regex (1)
- Photoshop (1)
- Leopard (1)
A little note to Internet Explorer users:
This site is not made for Internet Explorer. Some pages may look like shit. Yes, i could fix it for IE, but no, I'm not gonna do it. Try Opera or Firefox instead!