Ruby Ruby Objects and Classes Variables and Methods Instance Variables and Local Variables

Keep getting this error message

irb -r "name.rb" /Users/davidgreenstein/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require':LoadError: cannot load such file -- name.rb

ANy idea how to fix this?

1 Answer

joelearner
joelearner
37,579 Points

Hi David,

You're using irb? That appears to be the error message that the teacher gets in the Instance Variables and Local Variables video. Review the video and you'll see the teacher fixes the problem. It's just a matter of adding the proper path: irb -r "./name.rb"