Bummer! You have been redirected as the page you requested could not be found.

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 Values

John Cornici
John Cornici
1,317 Points

Oops! It looks like Task 1 is no longer passing.

I keep getting error "Oops! It looks like Task 1 is no longer passing." but I didnt change anything in the code from task 1.

hash.rb
grocery_item = { "item" => "Bread", "quantity" => 1, "brand" => "Treehouse Bread Company" }
grocery_item.has_value?("Bread")
grocery_item["food"] = true
grocery_list = [grocery_item.value_at("item")]

2 Answers

Seth Reece
Seth Reece
32,867 Points

Hi john,

"Oops! It looks like Task 1 is no longer passing" is code challenge speak for "you have a syntax error". I believe you want values_at in your last line. According to the docs there is no such thing as value_at in relation to hashes.

That sounds like good advice - but I will reiterate that the "Task 1 is no longer passing" thing will not necessarily relate to anything to do with task 1. It means your code is wrong, yes, but it'll relate to the last task, not the first.

Hi John,

Does this post help you get to the bottom of that?

Hope so - else shout back!

Steve.