maeshimaの日記

メモ書きです

2009-12-15から1日間の記事一覧

helper_method

controllerのメソッドをviewでも使えるようにするメソッド helper_method :current_user, :logged_in? などとするとcurrent_userメソッドやlogged_in?メソッドがviewでも使えるようになる

今週のrailscasts

decraretive authorizationよりもっと軽い認可プラグインcancanについて。Railscasts - Authorization with CanCan ryanb's cancan at master - GitHub認証部分はauthlogicなどの、current_userメソッドを定義しているプラグインを導入していることが前提な…