the codeacademy let me proceed to the next step but in the browser it shows error in @actor line.
I know that that line is not correct but I really do not know how to go from Movie model to Part model and then to Actor model to retrieve the names of the actor.
could someone help me, please?
@movie = Movie.find(params[:id])
@actor = Part.actor
Then in the Movies controller, add the show action to display a specific movie and its actors.
First use Movie.find to find the movie by its id.
Then retrieve all actors that belong to the movie, and store them in @actors.