cmagic_code recode with ruby on rails