我正在尝试在 Solaris 的用户空间中在 JRuby 1.7.3 上运行 Rails,运行时出现此错误rake db:create
。
-bash-3.2$ rake db:create
rake aborted!
undefined method `error' for #<ActiveRecord::JDBCError:0x109d7b8>
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyProc.java:249:in `call'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyKernel.java:1046:in `load'
Tasks: TOP => db:create
(See full trace by running task with --trace)
我已经查看了这一行的 JRuby 源代码,但我对此还远远不够深入,我不确定发生了什么。有没有人见过这个?