SHARE
TWEET

Untitled

a guest Jun 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ActiveRecord::Associations::CollectionAssociation#* (where * is any number of methods)
  2.      
  3. // flavors_array is an array of all the Flavor objects I want to associate with my ice_cream
  4. ice_cream.flavors = flavors_array
  5.      
  6. @article = Article.all
  7.      
  8. @article = Article.all.include(:category)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top