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 trialJohn Cornici
1,317 PointsOops! 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.
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
32,867 PointsHi 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.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsThat 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.