code added into rails project