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 Accessing Items in Arrays

Can't do [] in the console.

I can't follow the teacher like I want because I can't do [] in the irb console. alt + 8 or alt + 9 doesn't work. Can anybody help me?

Josh Salyer
Josh Salyer
7,265 Points

What exactly is the problem? Is there an error message that's displayed in the console? Are you trying to initialize an Array or access one of the elements within the Array?

David O' Rojo
David O' Rojo
11,051 Points

That seems like system configuration specific problem. What is your operating system? What are the language and keyboard configuration settings?

+1

Fausto Nunes
Fausto Nunes
3,879 Points

I have the same issue. I can't seem to finish this lesson because of it. As soon as I type the shortcut: Option + 8, irb changes to (arg:8.

I'm on MacOS currently. I'll try to finish this lesson on my home computer that runs on Windows, to see if I get the same issue.