Fix running rails server on rails 4.

Change-Id: Ib8c31e2c6b924586872b7ddfa2bafbfaac12d1b5