diff --git a/guides/source/association_basics.textile b/guides/source/association_basics.textile index d4c0a1ba7424d6d9d3ff606b77e45544be0a59cc..f6b1a0ef7a06c0ca4d6666706e03f753b07e8136 100644 --- a/guides/source/association_basics.textile +++ b/guides/source/association_basics.textile @@ -520,7 +520,7 @@ By default, Active Record doesn't know about the connection between these associ c = Customer.first -o = c.orders.first +o = c.orders[0] c.first_name == o.customer.first_name # => true c.first_name = 'Manny' c.first_name == o.customer.first_name # => false @@ -542,7 +542,7 @@ With these changes, Active Record will only load one copy of the customer object c = Customer.first -o = c.orders.first +o = c.orders[0] c.first_name == o.customer.first_name # => true c.first_name = 'Manny' c.first_name == o.customer.first_name # => true @@ -550,6 +550,7 @@ c.first_name == o.customer.first_name # => true There are a few limitations to +inverse_of+ support: +* They do not work with methods that invoke new query. E.g. using c.orders.first instead of c.orders[0] in the code above * They do not work with :through associations. * They do not work with :polymorphic associations. * They do not work with :as associations.