各位大大大家好,小弟我昨天在搭建 Ruby China 开发环境 (Vagrant) 在執行這個步驟的時候出現這個問題?
/vagrant $ ./bin/setup
vagrant@ruby-china-dev:/vagrant/bin$ ruby setup
setup:11: odd number list for Hash
red: 31,
^
setup:11: syntax error, unexpected ':', expecting '}'
red: 31,
^
我用 vim 開 setup 代碼看還是不知道問題出在哪裡?
然後再裝 Ruby China 的時候又遇到下面這個問題:
rake aborted!
NameError: ORM adapter not found (mongoid4)
[doorkeeper] ORM adapter not found (mongoid4), or there was an error trying to load it. You probably need to add the related gem for this adapter to work with doorkeeper.
NameError: uninitialized constant Doorkeeper::Orm::Mongoid4
/Users/LinCZ/ruby-china/config/initializers/doorkeeper.rb:1:in `<top (required)>'
/Users/LinCZ/ruby-china/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:seed => environment
(See full trace by running task with --trace)
上網找了一下 ORM 好像是 Object Relational Mapping?
所以是 Active Record 出問題嗎?
請大大們開示~ m( _ _ )m