Home > All > Acts as authenticationで:login_requiredなメソッドから弾かれた場合のリダイレクト先

Acts as authenticationで:login_requiredなメソッドから弾かれた場合のリダイレクト先

November 20th, 2008 Leave a comment Go to comments

デフォルトでは/sessions/newとなっていますが、/loginなどに変えたい場合
/lib/authenticated_system.rb
の67行目付近にある
redirect_to new_session_path
を適当な場所(:loginなど)に変えます

関連記事:

Tags: , ,
  1. No comments yet.