Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
rails group day 8
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
mrkhutter
March 29, 2016
51
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
rails group day 8
associations and joins
mrkhutter
March 29, 2016
Transcript
25 slides
Rails Study Group
Reference • http://guides.rubyonrails.org/ association_basics.html • http://guides.rubyonrails.org/ active_record_callbacks.html
Where we are now
Where we are now
Whats Left • 3.22: Associations • 3.24: Callbacks, Views &
Partials, Helpers • 3.29: CI & Deployment • 3.30: Hack Hour • 4.5(ish): Guest Speaker (tricks and tips)
MVC
MVC
MVC
Tests (green)
Tests (red)
Model Errors
Routes
config/routes.rb
CRUD, Verbs, & Actions
Route Restrictions
Joins
Inner Joins
Left (Outer) Join
Associations • belongs_to • has_one • has_many • has_many :through
• has_one :through • has_and_belongs_to_many
belongs_to • One to One • Singular
has_one • One to One • Contains or Possesses
has_many • One to Many • Plural
has_many through: • Many to Many • Zero or more
callbacks
callbacks
More Decks by mrkhutter
See All by mrkhutter
A Day in The Life
mrkhutter
0
110
rails group day 7
mrkhutter
0
41
rails study group day 6
mrkhutter
0
42
rails study group day 5
mrkhutter
0
36
shipt rails study group day 4
mrkhutter
0
34
shipt rails study group day 3
mrkhutter
0
40
Rails Study Group Day 1
mrkhutter
0
60
Featured
See All Featured
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
760
A Modern Web Designer's Workflow
chriscoyier
699
190k
What's in a price? How to price your products and services
michaelherold
247
13k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Bash Introduction
62gerente
615
220k
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
360
Documentation Writing (for coders)
carmenintech
77
5.7k