nzook's blog

nzook's picture

Electric Rails: Valid, but for how long?

The most jarring example of this is that validates_uniqueness_of ... doesn't.

nzook's picture

Ruby on Rails Security Cheat Sheet

I'm looking into access control solutions, and came again across the Ruby on Rails Security Cheat Sheet.

nzook's picture

The job hunt -- three and a half week vacation

So... my layoff from Touchtunes finally happened. And three weeks later I chose an offer from Zenoss (http://www.zenoss.com) over AMD (http://www.amd.com).

nzook's picture

Electric Ruby: Beware inline rescue

Maybe I'm the only one to waste a lot of time chasing this down, but...

x = method(parm) rescue nil

nzook's picture

Electric Rails: Forbidden column names (base)

Rails has *ahem* a lot of methods available to ActiveRecord::Base descendant class objects, and we are warned not to use these as column names.

nzook's picture

Electric Rails: Multiple relations with conditions to the same table

Suppose you have a model with two associations. Both attach to the same table. Both have conditions. Suppose you want to load both at the same time. You may have a problem.

nzook's picture

Electric Rails: Habtm join tables

Two things to be aware of here:

nzook's picture

Electric Rails: Don't Modify Attributes as Receiver

Ruby on Rails tries to be efficient (and there is much rejoicing). One of the tricks that is uses is to optimize ActiveRecord::Base#save.

nzook's picture

Electric Rails, the Series

Ruby on Rails is (deservedly) a popular and growing web development framework. It has its problem, those can be fixed.

nzook's picture

Landed!

Six months of looking after AMD's big ax hit, and I'm back to work.