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!
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
Marcus Tisäter
4,886 PointsTodolist application failure
Hey, I'm on the last step of completeing the todolist application and this is what I get for error. Can somone walk me through on whats wrong here? Thanks
3 Answers

Marcus Tisäter
4,886 PointsNo. I just named my app todoit ... :)

bobkingstone
27,869 PointsOk fair enough, so just so I'm clear the model's name is TodoitList ?
If you can double check the method name in your todo_list model (obviously replacing the todo_items with the model name you have used:
def has_completed_items?
todo_items.complete.size > 0
end
Bob

bobkingstone
27,869 PointsHi
shouldn't that line read
if @todo_list.has_completed_items?
not
if @todoit_list.has_completed_items?
Bob