Skip to content

britneywright/habtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

has_and_belongs_to_many relationships in Rails 4 example: Halloween Edition

This is an example I put together of how to create a has_and_belongs_to_many relationship in Rails 4. The example is based on a relationship of kids that get many different candies for Halloween and candies that go to many different kids on Halloween. You can see it in action, along with step-by-step instructions, at habtmexample.herokuapp.com/.

Specs:

  • Ruby version: 1.9.3

  • Ruby on Rails version: 4.0.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published