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 trialjdee
6,655 PointsBroken thymeleaf code in index.html?
I followed the video by pulling up the h2-console and inserting a Console object. I ran the app, but the object did not show up at /categories. So, I logged output in listCategories(), ran it again, and confirmed there was a result. Then I looked at templates.category.index.html. I didn't quite understand all the code, but I copied this div to the top of <header>, and the object name showed up: <div th:each="cat : ${categories}" class="col s12 l4"> <a th:text="${cat.name}">Category Name</a> </div>
Is the index.html code correct?
Please advise if I missed something.
1 Answer
jdee
6,655 PointsThanks for the tip and apologies for the delay. I was able to figure it out. Turns out I had not included a hash/pound sign before my hexCode value in the h2 database row.
Steven Parker
231,248 PointsThat happens to be a symbol that can only be seen in a forum post with Markdown formatting.
Steven Parker
231,248 PointsSteven Parker
231,248 PointsIf you create a video using the "get help" button on a course page, it should automatically place it in the right category, and provide a link to the page itself. And if it's a challnge, include you code with proper formatting.
If you're creating a question from scratch, it's helpful if you do the same things. And an even better way to share code is to make a snapshot of your workspace and post the link to it here.