Stuck at Edit

Having some trouble understanding forms in .erb files. From Phil's Friday tutorial 

<a href="/contacts/<%= @contact['id'] %>/edit">Edit Contact</a>

worked on his program but when I tried to use 

<a href="/list/<%= @todo['id'] %>/edit">Edit Contact</a>

on my singletodo.erb file I get the error that I can't figure out why.