# Many to Many Associations in Ruby on Rails – A Teach Me To Code Tutorial

> Episode of [Teach Me To Code » Screencasts](https://podistic.com/podcast/teach-me-to-code-screencasts.md) · Published May 27, 2011

- **Listen on Podistic:** https://podistic.com/episode/1297--many-to-many-associations-in-ruby-on-rails-a-teach-me-to-code-tutorial
- **Audio:** http://traffic.libsyn.com/tmtc/RailsManyToMany.m4v (video/x-m4v)

## About this episode

I had several requests in UserVoice to provide a Many to Many tutorial in Rails. This is a demonstration of how to put together a "has and belongs to many" association and a "has many through" association.

This is somewhat basic to Ruby on Rails, but important if you need to associate different models.

Download 161.3 MB
Download iPhone & iPod 97.7 MB
