In previous versions of rails, you could do MyController.filter_chain to get an object representing the filters on a controller.
Archive of posts from 2011
Who wants to type "bundle install" all the time? Not me, that's who!
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](https://rails.lighthouseapp.com/projects/8994/tickets/2824-patch-has_many-through-doesnt-update-counter_cache-on-join-model-correctly), and [a fix has been applied in edge](https://github.com/rails/rails/commit/52f09eac5b3d297021ef726e04ec19f6011cb302).
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.
As much as MVC is great, sometimes there's that little requirement that forces you to go against the standard way of doing things.
There seem to be two conventions for binding energy, one treating it as the (negative) potential energy due to the nucleons being close together, the other treating it as the (positive) energy needed to separate the nucleons.
Email terrifies me - I just find it incredibly complex. Luckily, some folks have made it really easy to generate and add SPF records.
One of the projects I'm working on at work has a load of this scattered around the codebase for AJAX, which really grates on me:
The JQuery validation plugin is pretty cool, but it doesn't validate on keyup by default unless the field has already been marked as invalid (by a form submit or a blur for example).
Inspired by my friend Rob, I've created a clock based on natural constants.