rails Rendering Text 用法
rails5.1版本前用法:
You can send plain text – with no markup at all – back to the browser by using the :text option to render:
render :text => "OK"
rails5.1之后用法:
You can send plain text - with no markup at all - back to the browser by using the :plain option to render:
render plain: "OK"

浙公网安备 33010602011771号