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

I need help with this question. i dont understand and ive watched the video 4 times.

.Fill in the blank to place a tab character in the string:

headline = "Website: ______ Treehouse"

Hi Cailey,

Posting is definitely encourage if you are having an issue you need assistance with, however, it is more beneficial to others if you specify exactly what the issue is and even better if you can post your code to go along with it. When you get an opportunity can you update your post and include details of what you are having trouble with and post the code? If you're not sure how to post code you can reference the Markdown Cheatsheet for advice.

3 Answers

Landon S
Landon S
3,433 Points

This in reference to a ruby String quiz. The right answer is:

headline = "Website: \t Treehouse"

This cheat sheet is pretty useful.

I guess the key takeaway here is that:

/t is not \t

Hope this helps.

Polly Sileo
Polly Sileo
3,696 Points

I think what they are looking for here here /t

/t will a tab of whitespace just like /n will give a return to a new line

I know it's not exactly intuitive, but the directions say : ".Fill in the blank to place a tab character in the string:"

To place a tab use /t. I don't know why you would want a tab in that place in the text...but sometimes it's difficult to come up with contrived examples to explain these concepts.

Luke Buśk
Luke Buśk
21,598 Points

"Team Treehouse" obviously ?