我正在將我的Rails項目轉換爲多租戶,並且我正在使用Apartment。 我跟着他們的自述和方向the video they link to 我apartment.rb看起來是這樣的: require 'apartment/elevators/subdomain'
Apartment.configure do |config|
config.excluded_models = ['P
即使租戶已存在,執行Apartment::Tenant.switch!("tenant_name")時出現錯誤。 當我運行公寓:: tenant_names,它返回數組包含["murah5","rahmatullah","test"]然後我運行Apartment::Tenant.switch!("murah5")它返回: Apartment::TenantNotFound: One of the
我正在使用Apartment gem構建一個多租戶應用程序。但是,當我棚架或產生的任何模型我收到以下錯誤: rails g model Car name
/Users/palmeiras/.rvm/gems/ruby-2.4.0/gems/actionpack-5.1.1/lib/action_dispatch/middleware/stack.rb:35:in `build': undef