From 649a95b8af3aa42183fe0096ccf2a54ec1c13656 Mon Sep 17 00:00:00 2001 From: Przemek Hocke Date: Fri, 21 Sep 2012 03:46:14 +0200 Subject: fix two typos in the associations guide --- guides/source/association_basics.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guides/source') diff --git a/guides/source/association_basics.textile b/guides/source/association_basics.textile index 3ee87f642a..e3da9b7e45 100644 --- a/guides/source/association_basics.textile +++ b/guides/source/association_basics.textile @@ -985,7 +985,7 @@ h6(#has_one-dependent). +:dependent+ Controls what happens to the associated object when its owner is destroyed: * +:destroy+ causes the associated object to also be destroyed -* +:delete+ causes the asssociated object to be deleted directly from the database (so callbacks will not execute) +* +:delete+ causes the associated object to be deleted directly from the database (so callbacks will not execute) * +:nullify+ causes the foreign key to be set to +NULL+. Callbacks are not executed. * +:restrict_with_exception+ causes an exception to be raised if there is an associated record * +:restrict_with_error+ causes an error to be added to the owner if there is an associated object @@ -1283,7 +1283,7 @@ The collection.create method returns a new object of the assoc h5. Options for +has_many+ -While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the +has_many+ association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this assocation uses two such options: +While Rails uses intelligent defaults that will work well in most situations, there may be times when you want to customize the behavior of the +has_many+ association reference. Such customizations can easily be accomplished by passing options when you create the association. For example, this association uses two such options: class Customer < ActiveRecord::Base -- cgit v1.2.3