內,當我嘗試使用主動管理一個項目。該項目還使用另一個gem來分隔不同的租戶,以及用於正常驗證的has_secure_password。如何跳過application_controller只調用某個命名空間(ActiveAdmin)
當用戶進入到活動管理員( - 管理員只是一個不同的命名空間),我有兩跳過這些過濾器的問題。
class ApplicationController < ActionController::Base
force_ssl
helper :all
protect_from_forgery
set_current_tenant_by_subdomain(:account, :subdomain) # need to skip this call when in the admin namespace
before_filter :require_user # need to skip this call when in the admin namespace
end
感謝您的幫助!
這樣做了。謝謝你的幫助! – lundie 2012-03-21 18:13:18