Update rails to address CVE-2014-3514. Fix the deployment