Fix some things in rails server post