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
Simon Walsh
Courses Plus Student 1,741 PointsWhy does the New todo list link fail for Jason?
I am having some trouble understanding why the New todo list link fails for Jason in this video.
Based upon the application helper code, I fail to see why the
if @todo_list
code runs. On the index page, the @todo_list is not instantiated.....it only occurs AFTER the New todo list button is clicked.
Is this the point? That this is the one situation where we have a @todo_list instantiated in the todo_list controller and therefore the code runs......
Apologies for this slightly convoluted question
Simon
Iain Simmons
Treehouse Moderator 32,305 PointsIain Simmons
Treehouse Moderator 32,305 PointsYou might have better luck getting a response to this question if you categorize it under Ruby.
Unfortunately, I'm not quite up to this stage yet, so I can't help you with your question.