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 Hashes Working with Hash Values

Rachelle Wood
Rachelle Wood
15,362 Points

Is this a bug?

Hi all. I had a strange thing happen to me when I was practicing hashes with workspaces. I was trying to access a string value in my hash and to put its string in my console. I was using string interpolation with "#{value}" but for some reason workspaces kept commenting everything out. When I tried to get the ruby program running anyway, I got a strange syntax error. I tried typing and retyping the code but I had no luck. Anything after a # was commented out.

The only way I managed to get it to work again was to reload workspaces. Did anyone else have this issue? Was it a mistake on my end? A button I pressed? Is it a bug?

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

If it worked when you relaunched Workspaces, I'm going to bet that it was just a glitch... I've had a couple pop up here and there.

:)

Rachelle Wood
Rachelle Wood
15,362 Points

Have you had this one crop up? If so, I will be more inclined to bug report it. If not, it may be something I hit or did that made this occur.

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Haven't experienced that one in particular, but I haven't worked in Ruby lately. Plus, it never hurts to report possible bugs to the Support Team, so maybe shoot them off a report. :)

Travis Mullen
Travis Mullen
14,544 Points

Hi Rachel,

I'm sure you've gotten past this by now, but I wanted to chime in on the issue. If you're doing interpolation, it's important to use double quotation marks (") rather than single quotes ('). Interpolation only works with double quotes and the Treehouse editor lets you know this by making everything after the hash mark (#) a comment.

Hope that helps!