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

Address Book in Ruby @contacts variable not working

Unless I'm not understanding the question correctly, the answer is simple, yet not working.

The question:

Correct the code below to make the contacts variable an instance variable.

The answer:

@contacts

The failure message:

Bummer! Close! The @ symbol turns a variable in to an instance variable.

2 Answers

Hi Joshua,

Your answer should be correct, that's @instance_variable

Dunno why it gave us error message, I will definitely contact out team supports.

Thank you for letting us know.