0
나는 ApplicationController
에 정의 된 방법이 있습니다ApplicationController에서 메소드를 호출하는 방법은 무엇입니까?
def some_checking
...
end
을 그리고 난 다른 컨트롤러 내에서 호출하고 싶습니다. 예 :
class OtherController < ApplicationController
some_checking
def xxx
end
end
어떻게하면됩니까? 방금 some_checking
에 입장 할 수 없습니다.
감사합니다. 이 경우 before_filter를 사용해야한다는 것을 잊어 버렸습니다. >. < –