Answer the question
In order to leave comments, you need to log in
Ruby on Rails rake aborted?
>rake db:migrate --trace rake aborted! NameError: undefined local variable or method `__dir__' for main:Object F:/OpenServer/domains/localhost/webrails/config/boot.rb:1:in `<top (required)>' F:/OpenServer/domains/localhost/webrails/config/application.rb:1:in `require_relative' F:/OpenServer/domains/localhost/webrails/config/application.rb:1:in `<top (required)>' F:/OpenServer/domains/localhost/webrails/Rakefile:4:in `require_relative' F:/OpenServer/domains/localhost/webrails/Rakefile:4:in `<top (required)>' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load_rakefile' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/application.rb:687:in `raw_load_rakefile' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/application.rb:96:in `block in load_rakefile' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/application.rb:95:in `load_rakefile' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/application.rb:79:in `block in run' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/lib/rake/application.rb:77:in `run' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' C:/Ruby19/bin/rake:23:in `load' C:/Ruby19/bin/rake:23:in `<main>'
Answer the question
In order to leave comments, you need to log in
The first thing a young Ruby on Rails developer is taught is to install and set up Ubuntu.
C:/Ruby19Update Ruby. Your version is very old.
How did you install 5th rails on ruby 1.9.1? Minimal support since 2.2.x. 1.9.1 - terrible junk.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question