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 Basics (Retired) Ruby Numbers Practicing with Numbers

Jared Armes
PLUS
Jared Armes
Courses Plus Student 6,391 Points

I have entered my data the exact same way as Jason, but the string for #{year} doesn't print to console. Why is this?

name = "Jared" string = "My name is #{name}" puts string

year = 2015 puts = "The year is #{year}"

2 Answers

Jared Armes
PLUS
Jared Armes
Courses Plus Student 6,391 Points

I figured out the issue. In the #{year} string, I put an equal sign after "puts".

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Jared Armes , I thought I might let you know I changed your comment to an answer. This allows you to be up-voted, and awarded with best answer! I marked it best, if you ever have any you answer to yourself like you just did, you should mark it also.