Updated Rails version.

@damithri Security vulnerability. Had to update version of rails. Can you merge this pull request if it's good.