Add project files and fix security  issue in rails