To Install Rails Gem on JRuby
If you installed your JRuby as a standalone instance, you also need
to install the required Rails and other Gems on it. To install Rails, use
the following procedure.
-
Install the Rails Gem:
jruby —S
gem install rails
The -S parameter that you used to run the command
to install Rails tells JRuby to look for the script anywhere in the JRUBY_HOME path. With this command, JRuby and required Gems
are installed on JRuby.