2008-08-01から1日間の記事一覧

before_filterで認証処理をかく

よく認証処理のサンプルで、ApplicationControllerで以下の様に記述する例がある。 class ApplicationController < ActionController::Base # 各々のコントローラが動作する前に動くメソッドを指定(今回はauthenticate) before_filter :authenticate, :exc…