PostgreSQL hstore
With its newish hstore extension, Postgres now has the ability to store schemaless data, like MongoDB, Riak, and other newfangled data stores. I've been wanting to play with it for a while and recently started on something that I thought might benefit from it. Inside model A, I'm storing an arbitrary number of rows of model B, which . . .
Passing multiple blocks to a Ruby method
Something I've wanted to toy around with for a while -- here's a little pattern for passing multiple blocks to a Ruby method. This is something I find myself wishing for now and again, although at the moment I can't think of what one of those use cases were.
def generate_continue_object(*args)
args.each{|a| puts a.inspect . . .