Minimum Viable Test Suite

Ensure your test suite doesn't have any important holes in coverage by enforcing a simple rule. Read more »

f.label and errors.full_messages

Why you should never use the explicit "content" parameter of label_tag or the form builder's label method. Read more »

Time Zones and datetime_select

A simple fix for using datetime_select and time_zone_select together. Read more »

views/mailers directory

Avoid cluttering up app/views by moving mailer directories underneath a single parent. Read more »

Beware ActiveRecord callbacks

ActiveRecord is a fantastically well-made ORM that makes working with databases a breeze, but one feature in the callback structure is incredibly bug-prone. Read more »


© 2012-2019 Dan Cunning. All rights reserved.