RSS

giles

I'm Giles Bowkett. This is where I post random things that are too small for my main blog and too big for Twitter.

Mar 21
Permalink

Insane But True

A lot of Rails view and helper methods take blocks. Thing is, if it takes a block, you don’t necessarily have to pass it in via the standard techniques. You can define it as an object and give it a to_proc method. This would be an interesting alternative to the template system.