Panasonic Youth

Rails ActiveRecord and blocks

(Found via redhanded) A nice post showing a one-liner using ActiveRecord to search and replace through all records of a table, including the db save. Has a nice explanation of blocks: A One-liner with Rails and ActiveRecord.