ruby 版本 - ruby 1.9.3p0(2011-10-30 修订版 33570)[x86_64-linux]
轨道版本 - Rails 3.2.6
宝石版本 - 1.8.15
操作系统 - Ubuntu 12.04
我确实跑来sudo gem install rubygems-update -v 1.8.24
更新 rubygems 版本
启动rails服务器后,出现异常
/var/lib/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load': /home/work/AptanaWorkspace/ordernile/config/initializers/wrap_parameters.rb:8: syntax error, unexpected ':', expecting kEND (SyntaxError)
wrap_parameters format: [:json]
^
from /var/lib/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
from /var/lib/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/lib/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb:588
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb:587:in `each'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb:587
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `run_initializers'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `send'
from /var/lib/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'