diff options
author | rohit <rohit.arondekar@gmail.com> | 2010-04-28 11:21:45 +0530 |
---|---|---|
committer | rohit <rohit.arondekar@gmail.com> | 2010-04-28 11:21:45 +0530 |
commit | 8f1a5bfee1305f193bb659c010ca7e2272c12051 (patch) | |
tree | bff2b920fd5487ab66cccb2fbe359d89c4238d92 /railties/guides | |
parent | edcbd33785b41fd5e01a862d7432da5d74532529 (diff) | |
download | rails-8f1a5bfee1305f193bb659c010ca7e2272c12051.tar.gz rails-8f1a5bfee1305f193bb659c010ca7e2272c12051.tar.bz2 rails-8f1a5bfee1305f193bb659c010ca7e2272c12051.zip |
readability fixes to two paras in Refactorization
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/getting_started.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index 5365936903..a4f969efe9 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -1015,11 +1015,11 @@ Now you can add posts and comments to your blog and have them show up in the rig h3. Refactorization -Now that we have Posts and Comments working, we can take a look at the +app/views/posts/show.html.erb+ template, it is getting long and awkward, we can use partials to clean this up. +Now that we have Posts and Comments working, if we take a look at the +app/views/posts/show.html.erb+ template, it's getting long and awkward. We can use partials to clean this up. h4. Rendering Partial Collections -First will make a comment partial to extract showing all the comments for the post, so make a file +app/views/comments/_comment.html.erb+ and put into it: +First we will make a comment partial to extract showing all the comments for the post. Create the file +app/views/comments/_comment.html.erb+ and put the following into it: <erb> <p> |