They load ruby gems into a dir onto my space: home/myusername/ruby/
gems/gems and recommend that you include this path by adding it to the
load_path like so:
If so - cool!
If not, can anyone explain what the difference is?
No - $: (and the various other names it has) is using by ruby when you
write require ‘foo’
config.load_paths (which eventually gets stored in
ActiveSupport::Dependencies.load_paths) is the set of paths that is
searched by rails’ magic loading stuff.
Not 100% sure what the difference is, but they’re both WRONG. Adding
gem directories like that to the load path will only work for suitably
small values of “work”. Try the instructions here:
to get this set up correctly. It might not seem like a big deal at
first, but the method recommended by your provider will break if gems
depend on other gems in your local repository.
–Matt J.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.