That title is pinched blatantly from the excellent Test Driven Development course by fellow Skills Matter instructor and agile programming luminary Craig Larman. Can you still say red/green when you run your tests on the command line? [grin] (Correction: when you run them from Emacs — a very big thanks to this chap).
Yes it’s test-driven-development week here at Hobo central (the above banner, btw, is the tranquil view from Hobo HQ).
DHH, as you probably heard, has learnt to stop worrying and love the CRUD. I’m very much in agreement. The idea of replacing the actions add_member and remove_member (or would that be join_group and leave_group?) with Membership#create and Membership#destroy was the final light switch that got me to a place I’d been striving for.
The generic controller. A standard implementation of the CRUD actions that can be used out-of-the-box in a large majority of cases.
DRYML has a nifty little feature called implicit context. Despite the title of this post, this feature has got nothing directly to do with ActiveRecord. Implicit context makes it a lot easier to populate your pages with data, and in Rails that means ActiveRecord models. So this post is about getting your models into your views.
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.