#2 楼 @blacktulip 直接修改 gemfile 可以不?
Github 被墙么,貌似没有啊,我这里完全正常,听说是曾经我国访问量暴增导致部分瘫痪,GFW 没有要墙的意思吧
#1 楼 @lgn21st 嗯嗯,添加以后,接着变成如下错误
D:\Software\webapps\demo>rails s
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
D:/Software/webapps/demo/config/initializers/carrierwave.rb:4:in `block in <top
(required)>': undefined method `database' for Mongoid:Module (NoMethodError)
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-0.5.8/lib/car
rierwave/uploader/configuration.rb:118:in `configure'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-0.5.8/lib/car
rierwave.rb:21:in `configure'
from D:/Software/webapps/demo/config/initializers/carrierwave.rb:1:in `<
top (required)>'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:234:in `load'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:234:in `block in load'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:223:in `block in load_dependency'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:640:in `new_constants_in'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:223:in `load_dependency'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:234:in `load'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
engine.rb:556:in `block (2 levels) in <class:Engine>'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
engine.rb:555:in `each'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
engine.rb:555:in `block in <class:Engine>'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:30:in `instance_exec'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:30:in `run'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:55:in `block in run_initializers'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:54:in `each'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:54:in `run_initializers'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
application.rb:96:in `initialize!'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
railtie/configurable.rb:30:in `method_missing'
from D:/Software/webapps/demo/config/environment.rb:5:in `<top (required
)>'
from D:/Software/webapps/demo/config.ru:3:in `require'
from D:/Software/webapps/demo/config.ru:3:in `block in <main>'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:51:in `instance_eval'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:51:in `initialize'
from D:/Software/webapps/demo/config.ru:in `new'
from D:/Software/webapps/demo/config.ru:in `<main>'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:40:in `eval'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:40:in `parse_file'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/serv
er.rb:200:in `app'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands/server.rb:46:in `app'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/serv
er.rb:304:in `wrapped_app'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/serv
er.rb:254:in `start'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands/server.rb:70:in `start'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands.rb:54:in `block in <top (required)>'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands.rb:49:in `tap'
from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'