让我们想象一下我有一个类 class Test < ActiveRecord::Base
include AuthenticatorHelper
def test
authenticate_or_fail!
puts "If I fail, this should be unreachable"
end
end
和 module Authe
只是想知道为什么这不起作用。 放置在单独的方法中的JSON返回当我在控制器得到下面的错误: The controller must return a response (null given). Did you forget to add a return statement somewhere in your controller? (500 Internal Server Error)
的