aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorप्रथमेश Sonpatki <csonpatki@gmail.com>2016-02-10 09:58:53 +0530
committerप्रथमेश Sonpatki <csonpatki@gmail.com>2016-02-10 09:58:53 +0530
commit21547fc680f22c99ec4ee55f2bc861cb08bd6af7 (patch)
tree3f8871d4c01bd6af05510608a7dcad23dad6e128 /guides/source
parentce33443d729fb3f2a5a933b6f0e848f17b2c0751 (diff)
parent344ddcbc3e57e49a7c476fa383a182564fdad198 (diff)
downloadrails-21547fc680f22c99ec4ee55f2bc861cb08bd6af7.tar.gz
rails-21547fc680f22c99ec4ee55f2bc861cb08bd6af7.tar.bz2
rails-21547fc680f22c99ec4ee55f2bc861cb08bd6af7.zip
Merge pull request #23586 from jhcole/master
Fix typo
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/association_basics.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 3386791cdb..09ab64837a 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -713,7 +713,7 @@ By default, Active Record doesn't know about the connection between these associ
```ruby
a = Author.first
-b = c.books.first
+b = a.books.first
a.first_name == b.author.first_name # => true
a.first_name = 'Manny'
a.first_name == b.author.first_name # => false
@@ -735,7 +735,7 @@ With these changes, Active Record will only load one copy of the author object,
```ruby
a = author.first
-b = c.books.first
+b = a.books.first
a.first_name == b.author.first_name # => true
a.first_name = 'Manny'
a.first_name == b.author.first_name # => true