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 trialtheojary gaxiola
1,490 Points.step_set.all?
I have doubt in how to type the query of flavors
<html>
<head>
<title>Ice Cream</title>
</head>
<body>
<div>We have {{flavor.set_flavors.all|length}} flavors today.</div>
<ul>
</ul>
</body>
</html>
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsBe careful to use the correct variable flowers
instead of flower
. You can use the |length
filter or the build-in query method .count
.
Post back if you need more help. Good luck!!