Yesterday I tried to switch from MRI to JRuby and I believe that i got all the gems right.
I am using Mongoid and not ActiveRecord so no switching of gem necessary there I think.
The error I get is:
incompatible character encodings: UTF-8 and ASCII-8BIT
The Full trace can be shown here: https://gist.github.com/1305847
And my Gemfile can be shown here: https://gist.github.com/1305882
Does anyone have a clue to what the solution might be?
It turns out there was a problem with jruby 1.6.4. After upgrading to 1.6.5 it works fine.
Try with running JRuby in 1.9 mode:
$ jruby --1.9 rails s
You can also $ export JRUBY_OPTS=--1.9
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.