Move zp app from cakePHP to RoR