当我尝试使用WEBrick启动新的Web服务器时会发生这种情况。
我已经在Ruby on Rails上玩了几天,但在Windows上安装它时遇到了很多麻烦。既然我在这里,我不确定会出现什么问题。
C:\Websites\Project_one>rails s
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/railtie/configur
ation.rb:95:in `method_missing': undefined method `active_record' for #<Rails::A
pplication::Configuration:0x00000003ad7980> (NoMethodError)
from C:/Websites/Project_one/config/application.rb:24:in `<class:Applica
tion>'
from C:/Websites/Project_one/config/application.rb:10:in `<module:Projec
tOne>'
from C:/Websites/Project_one/config/application.rb:9:in `<top (required)
>'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/com
mands/commands_tasks.rb:78:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/com
mands/commands_tasks.rb:78:in `block in server'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/com
mands/commands_tasks.rb:75:in `tap'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/com
mands/commands_tasks.rb:75:in `server'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/com
mands/commands_tasks.rb:39:in `run_command!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/com
mands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'