Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDavid Greenstein
6,734 PointsKeep 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
54,915 PointsHi 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"