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 Building Web Apps with Sinatra ERB Templates ERB Tags

akhter ali
akhter ali
15,778 Points

embedded ruby not working

Not sure what's wrong here, this should work according to the video

views/multiply.erb
3 times 4 is: <% 3 * 4 %>

2 Answers

Kyle Shamblin
Kyle Shamblin
9,945 Points

You can delete your question by going down to where it says add comment. You'll see ... click on it and then select delete question.

akhter ali
akhter ali
15,778 Points

All I see is edit comment.

I believe in the video that there are different tags. One for input and one for output.

For input, the tags to be used are <% (your code) %> .

For output, the tags to be used are <%= (your code) %> .

The challenge asks for output, so I think if you change your tags, it will help.