0
4

1 回答 1

0
"*ok*"

This is invalid JSON. If you need to respond with plaintext, don't send a JSON response.

format.text { render text: “*ok*” }

or if the server isn't making a text/plaintext GET request, just respond without a respond_to block.

render text: "*ok*" and return
于 2013-08-07T03:34:02.210 回答