rails 5中的此代码
class PagesController < ApplicationController
def action
render nothing: true
end
end
导致以下弃用警告
DEPRECATION WARNING: :nothing` option is deprecated and will be removed in Rails 5.1. Use `head` method to respond with empty response body.
我该如何解决?