IRB from project
Hi,
I am wondering how I can run IRB from the Ruby (not rails) project itself. Basically I want IRB to launch from the project base dir so I dont have to keep entering the full path to my classes i.e.
require "/Users/development/IdeaProjects/example"
Is there a step I am missing? Setting basedir in irb fails to solve the issue and I cant see where else I can configure IRB console....
Cheers,
Simon
请先登录再写评论。
IRB console is run with project content root as a working dir, so I guess the only problem may be caused by ruby 1.9. because it doesn't add current dir as a loadpath. You can see http://stackoverflow.com/questions/2900370/why-does-ruby-1-9-2-remove-from-load-path-and-whats-the-alternative for possible workarounds
Spot on, thanks Dennis.