Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActiveRecord::Associations::CollectionAssociation#* (where * is any number of methods)
- // flavors_array is an array of all the Flavor objects I want to associate with my ice_cream
- ice_cream.flavors = flavors_array
- @article = Article.all
- @article = Article.all.include(:category)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement