Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Loops Build a Simple Contact List Assigning Hash Values From Methods

I don't get what its asking me to do...

i don't understand what the challenge is

contact.rb
contact_list = []
get_name() = name
contact = {"name" => name, "phone_number" => "" }

1 Answer

Nathan Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Nathan Williams
Python Web Development Techdegree Student 6,851 Points

Hi Zachary,

I had to stare at the question for a few minutes, but it looks like they're wanting you to set the name key in the contact hash variable to the returned value of the get_name() method. You shouldn't have to create the get_name method, just assume that it exists.

Hope that helps!