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 Numbers Currency

Nathan Clevenger
PLUS
Nathan Clevenger
Courses Plus Student 17,759 Points

Installing Gems?

The last few videos we've been using IRB to run Ruby code. Now in this video we're supposed to "gem install money". Jason doesn't say we've changed what we're typing into, but I instantly get a "NameError" when trying to type this in IRB.

I've googled it but can't find a useful solution. Can someone help? Thanks!

1 Answer

Nathan Clevenger
PLUS
Nathan Clevenger
Courses Plus Student 17,759 Points

Okay, I found that it installs in the command line. In Windows, this looks different than what Jason uses, which I expect is a Mac, which I am still unfamiliar with. With Ruby 1.9 versions, I think that RubyGems is installed automatically. At the command line, you can type "gem -v" to see which version you are running and that it is successfully installed.

And I am answering myself so others won't have to! :)