0
我在ApplicationController
定义的方法:如何在ApplicationController中调用方法?
def some_checking
...
end
而且我想从另一个控制器中调用它。例如:
class OtherController < ApplicationController
some_checking
def xxx
end
end
我该如何做到这一点?我无法进入some_checking
。
谢谢。在这种情况下,我忘了我必须使用before_filter。 >< – 2010-04-14 08:28:59