jruby script/console
apparently needs JRuby in the PATH
to work correctly. If that isn't added to the PATH
, that command will pick up the system Ruby (or whatever else might be in PATH
).
To fix this, I was able to run the following commands:
export PATH=$JRUBY_HOME/bin:$PATH
jruby script/console
As Simon pointed out, using bundle exec
before the jruby
call is a good idea too:
bundle exec jruby script/console
If you don't want to run the export
command every time, add that environment variable where you set all of your other environment variables.