diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-05-02 11:13:20 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-05-02 11:40:25 +0200 |
commit | 323d2c42c3782db9e30b37abb4787fe73d6d7c8d (patch) | |
tree | 4065a2e37b588ada7c6cfb20d346f856a78a1d59 /guides/code/getting_started/app/views/comments | |
parent | 47ec49276d40ed565d805069bb2a746e9a7b3157 (diff) | |
download | rails-323d2c42c3782db9e30b37abb4787fe73d6d7c8d.tar.gz rails-323d2c42c3782db9e30b37abb4787fe73d6d7c8d.tar.bz2 rails-323d2c42c3782db9e30b37abb4787fe73d6d7c8d.zip |
Rewrite refactoring section in getting started guide
Diffstat (limited to 'guides/code/getting_started/app/views/comments')
-rw-r--r-- | guides/code/getting_started/app/views/comments/_comment.html.erb | 8 | ||||
-rw-r--r-- | guides/code/getting_started/app/views/comments/_form.html.erb | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/guides/code/getting_started/app/views/comments/_comment.html.erb b/guides/code/getting_started/app/views/comments/_comment.html.erb index 4c3fbf26cd..0cebe0bd96 100644 --- a/guides/code/getting_started/app/views/comments/_comment.html.erb +++ b/guides/code/getting_started/app/views/comments/_comment.html.erb @@ -1,13 +1,13 @@ <p> - <b>Commenter:</b> + <strong>Commenter:</strong> <%= comment.commenter %> </p> - + <p> - <b>Comment:</b> + <strong>Comment:</strong> <%= comment.body %> </p> - + <p> <%= link_to 'Destroy Comment', [comment.post, comment], :confirm => 'Are you sure?', diff --git a/guides/code/getting_started/app/views/comments/_form.html.erb b/guides/code/getting_started/app/views/comments/_form.html.erb index d15bdd6b59..00cb3a08f0 100644 --- a/guides/code/getting_started/app/views/comments/_form.html.erb +++ b/guides/code/getting_started/app/views/comments/_form.html.erb @@ -1,13 +1,13 @@ <%= form_for([@post, @post.comments.build]) do |f| %> - <div class="field"> + <p> <%= f.label :commenter %><br /> <%= f.text_field :commenter %> - </div> - <div class="field"> + </p> + <p> <%= f.label :body %><br /> <%= f.text_area :body %> - </div> - <div class="actions"> + </p> + <p> <%= f.submit %> - </div> + </p> <% end %> |