Skip to content

Instantly share code, notes, and snippets.

@seanirby
Created May 21, 2013 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanirby/5617662 to your computer and use it in GitHub Desktop.
Save seanirby/5617662 to your computer and use it in GitHub Desktop.
Technical Blog Post Outline: Has And Belongs to Many Associations in Rails
A. Intro
1.Go over associations and specifically explain the motivation for using a has and belongs to many association
B. Body
1. Create two models
2. Create the associations in each respective model file
3. Creating the join table through a migration
4. Test out the new association by showing some console output
5. Show something cool you can do with a habtm association
C. Conclusion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment