MongoDB Rails 3.2.7 mongoid3.0.5 出错

sanvi · August 28, 2012 · 2229 hits
/Library/Ruby/Gems/1.8/gems/bundler-1.2.0.rc.2/lib/bundler/runtime.rb:68:in `require': /Library/Ruby/Gems/1.8/gems/mongoid-3.0.5/lib/mongoid.rb:148: odd number list for Hash (SyntaxError)
    { to: Config }))
         ^
/Library/Ruby/Gems/1.8/gems/mongoid-3.0.5/lib/mongoid.rb:148: syntax error, unexpected ':', expecting '}'
    { to: Config }))
         ^
    from /Library/Ruby/Gems/1.8/gems/bundler-1.2.0.rc.2/lib/bundler/runtime.rb:68:in `require'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.2.0.rc.2/lib/bundler/runtime.rb:66:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.2.0.rc.2/lib/bundler/runtime.rb:66:in `require'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.2.0.rc.2/lib/bundler/runtime.rb:55:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.2.0.rc.2/lib/bundler/runtime.rb:55:in `require'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.2.0.rc.2/lib/bundler.rb:128:in `require'
    from /Users/sanvi/Documents/ror/code4rails/config/application.rb:12
    from /Library/Ruby/Gems/1.8/gems/railties-3.2.7/lib/rails/commands.rb:24:in `require'
    from /Library/Ruby/Gems/1.8/gems/railties-3.2.7/lib/rails/commands.rb:24
    from script/rails:6:in `require'
    from script/rails:6
No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.