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 Ruby Hash Creation

Ruby Hashes Code Challenge task 3 of 3 Comment/Concern

Here's something I noticed while trying to do this code challenge. I think it needs to be fixed fairly quickly.

Code Challenge Tasks Two and Three ask the same question. Both literally state "Create a key in the grocery_item_1 hash called "name" and set the value of that key to "milk".

I do this in Code Challenge two and go on to task 3, only to find the exact same question, but they are apparently looking for something else, because I get the error "Bummer! The hash key 'quantity was not found."

By deductive reasoning I decide that the question is supposed to ask me to add a quantity hash with the value of 1, as mentioned in the teacher notes at the bottom of the video.

However, I think that someone should fix the question before more people are confused, since the code they are looking for is:

grocery_item_1 = Hash.new;
grocery_item_1 = { "name" => "milk", "quantity" => 1 };

which ultimately does not match up with what the question appears to be asking for.

Thanks so much!

Hi, Im not at that level yet :D but you shoud tag a staff member from Ruby i suposed and he can have a look about it .

1 Answer

Sreng Hong
Sreng Hong
15,083 Points

I also reported this issues to the forum. I think they are working on it now.

https://teamtreehouse.com/forum/there-are-some-bugs-in-the-ruby-collection-course