In this episode we take a look at a common problem in Rails development: slimming down a controller whose functionality can't easily be pushed down into models. We address the …
Category: Premium Episodes
Episode #019: Pluggable Selector
In today's episode, we revisit episode 11 (Method and Message), and take a look at a way to make the coupling between objects even looser, by making the name of …
Episode #018: Subclassing Array
Sooner or later you'll want to subclass Array. This episode looks at why that's a bad idea, and presents an alternative.
Episode #016: super in Modules
How to find out if there is a super method to be called, and other tricks for using super within a module.
Episode #015: Advanced #fetch
In this final installment on the #fetch method we look at #fetch beyond Hash; #fetch with nested hashes; re-using default blocks; and more.
Episode #012: #fetch for Defaults
How to use Hash#fetch to provide defaults for missing keys, and why you might prefer that to other techniques for defaulting values.