Rails 3.1 replacement for filter_chain

In previous versions of rails, you could do MyController.filter_chain to get an object representing the filters on a controller.

Bundle Install Git Post Merge Hook

Who wants to type “bundle install” all the time? Not me, that’s who!

Rails 3 counter_cache with has_many :through

After an evening of getting knee deep in the Rails core debugging and issue with counter_cache on a has_many :through, it seems this has been reported on lighthouse, and a fix has been applied in edge.

Rubix Cube 5x5 Parity Algorithm

Nothing to see here, just an aid to memory:

CakePHP pagination and filtering

Here’s another little trick in CakePHP - it’s quite often that someone will request a big old list of paginated data, along with filters on that data.