Revert "Fixed the rails server."

This reverts commit 8ba9d40677118569895e6292dc2b4214d2ae6087.
merge code