私はdeviseを使用しており、ユーザーをif seller_disabled_paypal_permissions != nil
自分の特定のページにリダイレクトする必要がありますapplication_controller.rb
このコードはapplication_controller.rbにあります
class ApplicationController < ActionController::Base
before_filter :bad_sellers
#more code
.
.
.
private
def bad_sellers
if user_signed_in?
redirect_to requirements_to_sell_user_path, :alert => t('.error') if current_user.seller_disabled_paypal_permissions != nil
return false
end
end
end
しかし、エラーが発生します:
エラー310(net :: ERR_TOO_MANY_REDIRECTS):リダイレクトが多すぎました。
どうすればいいですか?