JC: added @erb_code to controller. Spec passes.