6.9 NameError in Actors#index


#1

I pass the exercise but when I attempt to browse to http://localhost:8000/actors I get the following error.

What could be causing this? Which code should I provide to you guys to work out what's wrong?

Thanks


#2

Hi @sjpollen,

You need to use actor_path(a) instead of actor_path(actor), just like you have a.image, a.first_name, etc.. Or you could change |a| to |actor| in your for loop, and change the other things (a.*) to use actor instead :slight_smile:


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.