Rails 3.1で使用している人のauthlogicのバージョン。Authlogic Rails 3.1
は、私は私のgemfileに次のエントリを持っている:
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'
私が持っている問題は、私の基本ApplicationControllerに内のコードの一部です。
session[:return_to] = request.request_uri
私はというエラーを取得しています:
def require_no_user
if current_user
store_location
flash[:notice] = "You must be logged out to access this page"
redirect_to :controller => "home", :action => "index"
return false
end
end
def store_location
session[:return_to] = request.request_uri
end
私は取得していますエラーがラインである
undefined method `request_uri' for #<ActionDispatch::Request:0x7dadd4d8>
はREQUEST_URIがActionDispatchから削除されているそうであれば、何がある 正しい代替?
これは素晴らしいです!うまく仕事します。 – Nizzy