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 trial

Ruby Ruby Foundations Hashes Creating Hashes

Winston Hardson
Winston Hardson
1,463 Points

Require 'rubygems' came back false.

When I require 'rubygems' the prompt came back false instead of true like the video.

1 Answer

Jamie Barton
Jamie Barton
14,498 Points

Hi Winston Hardson

The reason you'll be getting the false message is probably because the library is loaded already.

It'll only return true if the rubygems haven't been loaded already and false is they have.

For example,

Run require 'time' and it'll return true.

Then run it again and see the result false

Hope this helps.