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 Collections Ruby Hashes Working with Hash Keys

workspaces not working?

using workspaces and i try to create a hash as preformed in the video and it does not create. Example in irb, hash = { "name" => "Bread", "quantity" => 1, "name" => "Treehouse Bread Co" }

not getting the same results as the video.

1 Answer

Did you remember to first type irb into the Console then type out Ruby commands?

If you did, try typing irb into the Console then typing out Ruby.

Good luck! ~alex

i was in irb. Are you suggesting typing irb and ruby together ( irb ruby) ?

No....

That's weird.

If this continues to bother you, you can do this (only if you are on a Mac or Linux):

  1. Search for a application called "Terminal" (it is built in to any Mac/Linux)
  2. Type irb.
  3. You should be in your own computer's irb locally! :)

Note: You can use irb anytime even without Internet this way!

I hope this helps.

Tagging:

Ken Alger Kara P Jason Seifer