Archive | rails RSS feed for this section

Use layouts in ActionMailer

Oh. my. god. This plugin is the mostest brilliantests I have discovered this entire week. Maybe even month! It allows you to render outgoing emails in a layout!

Leave a comment Continue Reading →

the utf-8 saga

In another series about web development, this is a pretty unhappy installment. In 2007 it’s clear that your complete web application should be utf-8. This a way to encode characters for use by a computer [yes I know, actually it's a character set]. There are several character sets in use. Letters a-z are encoded in [...]

Leave a comment Continue Reading →

Artist blogs

Today appears to be the day where stuff gets done! I just implemented a blog import tool for GO Magazine. Ruby and Rails just make it so easy. I generated two models: Blog and Post. Blog gets hooked up to an Artist, and Blog has_many :posts. Blog is hooked up to a Link as well. [...]

Leave a comment Continue Reading →

acts_as_sluggable

How can anyone not love Rails? Many websites these days have nice descriptive URLs like /post/12/i-like-doggies. Apparently it helps in the Google ranks, although I am not convinced. In the olden days you would probably write a custom script, add a database column, knit the two together and use a little mod_rewrite magic to hide [...]

Leave a comment Continue Reading →

dnsbl_check

Finally I have this blog to post some interesting tidbits about my rails plugin dnsbl_check. First of all, I am glad to announce that the plugin will become part of Instiki! Comment spam is a huge problem for any publishing platform, but Wikis tend to suffer extra. My plugin does help a lot battling the [...]

Leave a comment Continue Reading →

Return-Path in Rails ActionMailer

So today I finally made Rails do something I needed for a long time: honour the Return-Path header on outgoing emails. This is basically the return address for MTAs, er, computers to use. It’s a quite useful header since you can manage your mailing list the proper way. I.e. have replies sent to you, but [...]

2 Comments Continue Reading →