"*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