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 Arrays Removing Items From Arrays

Jamie Barton
Jamie Barton
14,498 Points

Feedback on Ruby Collections challenges

It appears a lot of the challenges ask you to create variables but when you try to check your work it's marked incorrect.

It's due to the inconsistency of defining variables with or without an underscore.

You ask to define firstitem but the challenge on error says it can't find first_item

This appears to be for most in these challenges.

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

I already contacted the staff about this. Looks like the underscores were interpreted as symbols that make the following text italicized. Follow the errors, it will work ;)

Jamie Barton
Jamie Barton
14,498 Points

Oh I know it works, I just wanted to point it out. Thanks!

Jamie Barton
Jamie Barton
14,498 Points

It would also appear the Hashes challenge task 3 of 3 asks the same question but the error says it can't find a quantity key.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Yup, told them about this s well. The proper value is 1 by the way ;)