JC: added @erb_code to controller. spec passes.
JC: changed from put to get in routes for search/stat results.