Fix deprecation: render :text is deprecated because it does not actually render a text/plain response