Update Rails and fix failing test