removed non working ruby on rails 4.x code