Bagzip application in rails