即使租戶已存在,執行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
我正在爲我的rails應用程序配置公寓gem,以便爲用戶提供創建子域的功能。我有一個嵌套形式和試圖訪問時 「賬戶/新」 我收到以下錯誤: no implicit conversion of Symbol into Integer in view forms
賬戶/ new.html.erb <div>
</div>
<h2>Create an Account</h2>