Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これを行う簡単な方法はありますか?ユーザーが取得しようとしているページに関係なく、このコントローラーを常にトリガーするにはどうすればよいですか?
に を追加できbefore_filterますApplicationController:
before_filter
ApplicationController
before_filter :login_required protected def login_required redirect_to root_url if not logged_in? end