upgraded to Rails v4
removed old code