Uh oh
/Users/myname/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- classes/loginclass (LoadError)
from /Users/myname/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from programtest.rb:1:in `<main>'
What have I done? This worked fine on 1.8.7 a few minutes ago; still works fine in TextMate which is running on 1.8.7. Do I need to change my folders somehow?
EDIT:
OK – was able to get it working with this edit:
require File.dirname(__FILE__) + '/classes/loginclass.rb'
Still don’t understand why I had to change this. I guess my load path changed somehow?
Do not write
.rbat end of required file, also useFile.joininstead of slashes: