MongoDB Rails 3.2.7 mongoid3.0.5 出错

sanvi · 2012年08月28日 · 2229 次阅读
/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
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号