最佳答案
Rails 5.1 removes a whole load of previously deprecated methods. Among them is the old friend render :text
.
It was very useful when you need to render some text, but don't want the overhead of a view template. Examples:
render text: "ok"
render text: t('business_rules.project_access_denied'), status: 401
What to use instead?