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

Marcus Tisäter
Marcus Tisäter
4,886 Points

Todolist 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

http://imgur.com/R2wBzhu

3 Answers

Marcus Tisäter
Marcus Tisäter
4,886 Points

No. I just named my app todoit ... :)

Ok 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

Hi

shouldn't that line read

if @todo_list.has_completed_items?

not

if @todoit_list.has_completed_items?

Bob