Learn

Congratulations! You build a movie website that lets people browse a movie’s cast and an actor’s filmography. What can we generalize so far?

  • Actors and movies can be modeled using a many-to-many relationship. In Rails, this can be implemented using a has_many :through association.
  • The has_many :through association joins two models via a third model.

Sign up to start coding

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?