Permalink
Browse files

fix two typos in the associations guide

  • Loading branch information...
1 parent deed3f9 commit 649a95b8af3aa42183fe0096ccf2a54ec1c13656 @phocke phocke committed Sep 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/association_basics.textile
View
4 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 <tt><em>collection</em>.create</tt> 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:
<ruby>
class Customer < ActiveRecord::Base

0 comments on commit 649a95b

Please sign in to comment.