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 Instance Methods give me an error

Windows 7 IRB:

I am copying exactly what is on the video:

mkdir -p Source/methods

Why is it giving me an error "Syntax error, unexpected tCONSTANT, expecting keyword_do or '{' or '(' ".... why is it giving me this error?

thanks

2 Answers

Just found out what I did wrong - I was not in CMD and I needed to use a backslash instead of a forward slash and leave out the -p all though this was not explained in the video.

Colin Stodd
Colin Stodd
3,160 Points

I'm still having this problem. Are you using the CMD from RUN in windows? I've tried that without the "-p" and I'm still having issues. Your help would be greatly appreciated!

Colin Stodd
Colin Stodd
3,160 Points

I've gotten past the "mkdir Source\methods", However, I'm now having trouble with the "touch" and "subl" lines. :/

There are some hiccups in continuity between videos and what needs to be done. I'm running through the Ruby App course right now and have hit a few bumps, although frustrating as a newcomer, it's probably better for us in the long run to be able to slug through the errors we get. You really start learning at that point :)

Glad you got you caught yours.