Welcome Rubyists
“Often people, especially computer engineers, focus on the machines. They think, "By doing this, the machine will run faster. By doing this, the machine will run more effectively. By doing this, the machine will something something something." They are focusing on machines. But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines. We are the masters. They are the slaves.”
- Yukihiro Matsumoto
- Fork this repo to your github account.
- Clone it locally onto your laptop.
- Create a folder with your name, ex: cody_williams
- Add this (https://github.com/CodingDojoDallas/ruby_dec_2017/) repo as a REMOTE to your locally cloned copy.
git remote add upstream https://github.com/codingdojodallas/ruby_dec_2017
- Profit!
Please commit daily. That way we can provide you with feedback :) or just a thumbs up if everything looks good. Here is a good resource that describes how daily commit process should go.
https://www.dropbox.com/s/h3texmoqm801j8w/github_workflow_v4.pdf?dl=0
NOTE: If you don't get in at least one pull request daily, then ya ain't serious.
Self Join Many To Many - https://youtu.be/fhCNn1XTuy0
Social Network, Self Join Many To Many https://youtu.be/_OsYvpndaX4
Relations are Hard - https://youtu.be/YW6X53ia2Z8
Deployment - https://youtu.be/V2Frb35zpBA
Sort by count of a relation - https://youtu.be/p5UOxHR2200
https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html
http://api.rubyonrails.org/classes/ActiveModel/Validations/HelperMethods.html
Creating Multiple Associations with the Same Table
Understanding Polymorphic Associations
What's the Deal With Polymorphic Associations?
Creating Polymorphic Associations in Rails
An important note: before_save is called every time an object is saved. So for new and existing objects. (create and update action) before_create only before creation. So only for new objects (create action, but not update)