diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/getting_started.textile | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index f5be0b34c4..5365936903 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -689,17 +689,17 @@ The +show+ action uses +Post.find+ to search for a single record in the database <p class="notice"><%= notice %></p> <p> - <b>Name:</b> + <strong>Name:</strong> <%= @post.name %> </p> <p> - <b>Title:</b> + <strong>Title:</strong> <%= @post.title %> </p> <p> - <b>Content:</b> + <strong>Content:</strong> <%= @post.content %> </p> @@ -904,17 +904,17 @@ So first, we'll wire up the Post show template (+/app/views/posts/show.html.erb+ <p class="notice"><%= notice %></p> <p> - <b>Name:</b> + <strong>Name:</strong> <%= @post.name %> </p> <p> - <b>Title:</b> + <strong>Title:</strong> <%= @post.title %> </p> <p> - <b>Content:</b> + <strong>Content:</strong> <%= @post.content %> </p> @@ -961,29 +961,29 @@ Once we have made the new comment, we send the user back to the original post us <p class="notice"><%= notice %></p> <p> - <b>Name:</b> + <strong>Name:</strong> <%= @post.name %> </p> <p> - <b>Title:</b> + <strong>Title:</strong> <%= @post.title %> </p> <p> - <b>Content:</b> + <strong>Content:</strong> <%= @post.content %> </p> <h2>Comments</h2> <% @post.comments.each do |comment| %> <p> - <b>Commenter:</b> + <strong>Commenter:</strong> <%= comment.commenter %> </p> <p> - <b>Comment:</b> + <strong>Comment:</strong> <%= comment.body %> </p> <% end %> @@ -1023,12 +1023,12 @@ First will make a comment partial to extract showing all the comments for the po <erb> <p> - <b>Commenter:</b> + <strong>Commenter:</strong> <%= comment.commenter %> </p> <p> - <b>Comment:</b> + <strong>Comment:</strong> <%= comment.body %> </p> </erb> @@ -1039,17 +1039,17 @@ Then in the +app/views/posts/show.html.erb+ you can change it to look like the f <p class="notice"><%= notice %></p> <p> - <b>Name:</b> + <strong>Name:</strong> <%= @post.name %> </p> <p> - <b>Title:</b> + <strong>Title:</strong> <%= @post.title %> </p> <p> - <b>Content:</b> + <strong>Content:</strong> <%= @post.content %> </p> @@ -1110,17 +1110,17 @@ Then you make the +app/views/posts/show.html.erb+ look like the following: <p class="notice"><%= notice %></p> <p> - <b>Name:</b> + <strong>Name:</strong> <%= @post.name %> </p> <p> - <b>Title:</b> + <strong>Title:</strong> <%= @post.title %> </p> <p> - <b>Content:</b> + <strong>Content:</strong> <%= @post.content %> </p> @@ -1149,12 +1149,12 @@ So first, let's add the delete link in the +app/views/comments/_comment.html.erb <erb> <p> - <b>Commenter:</b> + <strong>Commenter:</strong> <%= comment.commenter %> </p> <p> - <b>Comment:</b> + <strong>Comment:</strong> <%= comment.body %> </p> @@ -1350,22 +1350,22 @@ Finally, we will edit the <tt>app/views/posts/show.html.erb</tt> template to sho <p class="notice"><%= notice %></p> <p> - <b>Name:</b> + <strong>Name:</strong> <%= @post.name %> </p> <p> - <b>Title:</b> + <strong>Title:</strong> <%= @post.title %> </p> <p> - <b>Content:</b> + <strong>Content:</strong> <%= @post.content %> </p> <p> - <b>Tags:</b> + <strong>Tags:</strong> <%= @post.tags.map { |t| t.name }.join(", ") %> </p> @@ -1405,22 +1405,22 @@ Now you can edit the view in <tt>app/views/posts/show.html.erb</tt> to look like <p class="notice"><%= notice %></p> <p> - <b>Name:</b> + <strong>Name:</strong> <%= @post.name %> </p> <p> - <b>Title:</b> + <strong>Title:</strong> <%= @post.title %> </p> <p> - <b>Content:</b> + <strong>Content:</strong> <%= @post.content %> </p> <p> - <b>Tags:</b> + <strong>Tags:</strong> <%= join_tags(@post) %> </p> |