Library path in rubymine 2.5 EAP

I've got two projects, one is a rails app another is a ruby library (not a gem, just a library).  The rails app uses the library, which if it's installed, works fine.  But as I'd prefer to point the rails app at the library under development, I'd like to add that in the path in RubyMine.  I've tried adding it to Project Settings > Project Structure -> Load Path , but Rails still doesn't see it, and printing out $LOAD_PATH in the rails console doesn't show the paths.  This is on Windows btw (yet another reason I'd as soon not install the library).  What am I missing?  Thanks!

--Bill

2 comments

Hello Bill,

RubyMine doesn't provide UI for changing rails loadpath on runtime. I suppose you should do it manually in config/boot.rb or some other place.

If you want to see you additional library in RubyMine project view - add library as second content root in  Settings | Project Settings | Project Structure.
"Project Settings | Project Structure | Load Path" setting is for RubyMine code insight features. Due to this setting RubyMine can understand relative path in "require" calls for scripts which are located in some additional loadpath folders (e.g. your library).

0

The only problem with using something like boot.rb is that it ties a lot of local developer environmental logic in code that gets checked into the repo.  I suppose I can put something in config/initializers that I can put in .svnignore to handle a local load path.  Thanks

--Bill

0

Please sign in to leave a comment.