Permalink
Browse files

Rewrote para for clarity and better reading

  • Loading branch information...
1 parent 7c7e00b commit 0bd631419ecf52844d43dd2c05b244d221d66bf3 @rohit rohit committed Apr 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/getting_started.textile
View
2 railties/guides/source/getting_started.textile
@@ -1191,7 +1191,7 @@ The +destroy+ action will find the post we are looking at, locate the comment wi
h4. Deleting Associated Objects
-If you decide at some point to delete a post, you likely want to delete the comments associated with that post as well. You can do so by taking advantage of the association option +dependent+. All you need to do is modify the +post.rb+ as follows:
+If you delete a post then it's associated comments will also need to be deleted. Otherwise they would simply occupy space in the database. Rails allows you to use the +dependent+ option of an association to achieve this. Modify the Post model, +app/models/post.rb+, as follows:
<ruby>
class Post < ActiveRecord::Base

0 comments on commit 0bd6314

Please sign in to comment.