I\'m having various issues with my Rails console under JRuby, including
Running the console with the following fixed these sorts of problems for me:
jruby -Xlaunch.inproc=true -S rails c
If you don't like running that command every time, you can set an environment variable:
set JRUBY_OPTS=-Xlaunch.inproc=true
or
export JRUBY_OPTS=-Xlaunch.inproc=true
then
rails c
I had this issue with Windows and the fix was to increase the "Number of Buffers" in the Command prompt settings. Command Prompt -> Properties -> Options -> Number of Buffers Default is 4, I changed to 8 and all worked well (I think 5 would work though)