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 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,050 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.