• 安装 hiredis 总是不成功 at 2013年02月17日

    #2 楼 @blacktulip 直接修改 gemfile 可以不?

  • Github hosts 低调传播 at 2013年02月11日

    😳 Github 被墙么,貌似没有啊,我这里完全正常,听说是曾经我国访问量暴增导致部分瘫痪,GFW 没有要墙的意思吧

  • #8 楼 @mjf429 😓我想保留 MongoID3 而舍弃 carrierwave,该怎么搞呢

  • #5 楼 @mjf429 完全不懂啊,大哥😭 :file???,,nfs????????

  • #3 楼 @lgn21st 俺是菜鸟~~😓

    
    
    CarrierWave.configure do |config|
      config.storage = :grid_fs
      config.grid_fs_access_url = ""
      config.grid_fs_database = Mongoid.database.name
      config.grid_fs_host = Mongoid.config.master.connection.host
    end
    
    
    
  • #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>'