diff options
author | Rohit Arondekar <rohit.arondekar@gmail.com> | 2010-04-29 22:39:08 -0700 |
---|---|---|
committer | Rohit Arondekar <rohit.arondekar@gmail.com> | 2010-04-29 22:39:08 -0700 |
commit | 0bd631419ecf52844d43dd2c05b244d221d66bf3 (patch) | |
tree | b99a8c692ce24be3e35bb47cb62393e909dfb647 /railties/guides/source/getting_started.textile | |
parent | 7c7e00b552556d3bbe37e9a38f713852d88cb363 (diff) | |
download | rails-0bd631419ecf52844d43dd2c05b244d221d66bf3.tar.gz rails-0bd631419ecf52844d43dd2c05b244d221d66bf3.tar.bz2 rails-0bd631419ecf52844d43dd2c05b244d221d66bf3.zip |
Rewrote para for clarity and better reading
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index 04075b7ee4..1664e2a7ec 100644 --- a/railties/guides/source/getting_started.textile +++ b/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 |