Upgrade rails version, refs #1376