0
私はアパートの宝石を使ってマルチテナントアプリケーションを構築しています。しかし、私は足場だか、私は以下のエラーを取得しています任意のモデル生成時:Rails Apartment gem error generate model
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': undefined method `new' for "Apartment::Elevators::Domain":String
Did you mean? next (NoMethodError)
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/actionpack-5.1.1/lib/action_dispatch/middleware/stack.rb:99:in `block in build'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/actionpack-5.1.1/lib/action_dispatch/middleware/stack.rb:99:in `each'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/actionpack-5.1.1/lib/action_dispatch/middleware/stack.rb:99:in `inject'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/actionpack-5.1.1/lib/action_dispatch/middleware/stack.rb:99:in `build'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:508:in `block in app'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:504:in `synchronize'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:504:in `app'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/application/finisher.rb:45:in `block in <module:Finisher>'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:30:in `run'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:59:in `block in run_initializers'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:58:in `run_initializers'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/railties-5.1.1/lib/rails/application.rb:353:in `initialize!'
from /Users/codevops/dev/auto_repairs/config/environment.rb:5:in `<top (required)>'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in `require'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in `preload'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/spring-2.0.1/lib/spring/application.rb:143:in `serve'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/spring-2.0.1/lib/spring/application.rb:131:in `block in run'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in `loop'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in `run'
from /Users/codevops/.rvm/gems/ruby-2.4.0/gems/spring-2.0.1/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/codevops/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
あなたはレールの最新バージョン(5.1.1)を使用している通りがあるかもしれバージョン5.1.1
: は、私はあなたがgithubの上の問題としてこれを引き上げることを示唆しています提案のために。 –