Students and Courses: Require/Include

Hey everyone,

Okay, so I’m not sure if I missed this somewhere along the way, but I’m running into issues in pry. When I am just doing some testing by example in pry, I wind up having to load both courses.rb and students.rb. I’ve tried require-ing the files in each other but it raises an error in pry. Is this due to something as simple as file locations? Or might I have the syntax wrong?

Thanks, looking forward to seeing everyone.

Without the actual code or error trace to look at it’s hard to be sure of what the issue is. I would guess by your description that you want to be using require_relative in your file and not require. The difference is explained well on stack overflow:

Hope this helps!