Use Cookbook.with_name().first! instead of find_by!.