added ruby code to todo.erb