Rails and PHP connection works