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 Foundations Methods Instance Methods

Ronnie Barua
Ronnie Barua
17,665 Points

Trouble making mkdir -p Source/methods using macPro. Thanks in advance

Getting syntexError: unexpected tCONSTANT, expecting keyword_do or '{' or ' ('

I've tried without -p, that did gave me NameError: uninitialized constant Source

4 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

I'll take a wild guess: you entered this command in IRB, not in the normal terminal window. Please exit IRB and try again.

Ronnie Barua
Ronnie Barua
17,665 Points

You are 100% correct. Now it's working. Thank you so much

Ronnie Barua
Ronnie Barua
17,665 Points

Now I can't open subl folder/file. "command not found". Does it have anything do with Python, that I have installed recently?

I have a export PATH = "$HOME/.rbenv/bin:$PATH

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

No. Jason has Sublime Text installed and he also configured a custom terminal command that opens Sublime Text. Ignore it and just open the file using your favorite text editor.