Search code examples
jrubyjrubyonrails

jruby: No such file or directory -- rails (LoadError)


I was trying to create a jruby application using jruby -S rails new OSTH_GGG.

But it returns jruby: No such file or directory -- rails (LoadError).

What is the problem?


Solution

  • Make sure the rails gem is installed:

    jruby -S gem install rails
    

    See also this answer to get more details on how to get started with JRuby on Rails.