Fixing CVE-2014-0080 and CVE-2014-0082 issues by upgrading rails

Upgrading rails to prevent any possible security issues.