mirror of https://github.com/rails/rails
Use consistent anchor text throughout the guide.
Change all of anchor text in the nav links to `Back` and `Edit` Use `Edit | Back` on pages that use both links to conform to what scaffolding generates. Use consistent anchor text throughout the guide. Change all of anchor text in the nav links to `Back` and `Edit` Use `Edit | Back` on pages that use both links to conform to what scaffolding generates.
This commit is contained in:
parent
970fe27b02
commit
3447e76536
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 22 KiB |
|
@ -1271,8 +1271,8 @@ bottom of the template:
|
|||
```html+erb
|
||||
...
|
||||
|
||||
<%= link_to 'Back', articles_path %> |
|
||||
<%= link_to 'Edit', edit_article_path(@article) %>
|
||||
<%= link_to 'Edit', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back', articles_path %>
|
||||
```
|
||||
|
||||
And here's how our app looks so far:
|
||||
|
@ -1681,8 +1681,8 @@ So first, we'll wire up the Article show template
|
|||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', articles_path %> |
|
||||
<%= link_to 'Edit', edit_article_path(@article) %>
|
||||
<%= link_to 'Edit', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back', articles_path %>
|
||||
```
|
||||
|
||||
This adds a form on the `Article` show page that creates a new comment by
|
||||
|
@ -1762,8 +1762,8 @@ add that to the `app/views/articles/show.html.erb`.
|
|||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Edit Article', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back to Articles', articles_path %>
|
||||
<%= link_to 'Edit', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back', articles_path %>
|
||||
```
|
||||
|
||||
Now you can add articles and comments to your blog and have them show up in the
|
||||
|
@ -1828,8 +1828,8 @@ following:
|
|||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Edit Article', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back to Articles', articles_path %>
|
||||
<%= link_to 'Edit', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back', articles_path %>
|
||||
```
|
||||
|
||||
This will now render the partial in `app/views/comments/_comment.html.erb` once
|
||||
|
@ -1878,8 +1878,8 @@ Then you make the `app/views/articles/show.html.erb` look like the following:
|
|||
<h2>Add a comment:</h2>
|
||||
<%= render 'comments/form' %>
|
||||
|
||||
<%= link_to 'Edit Article', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back to Articles', articles_path %>
|
||||
<%= link_to 'Edit', edit_article_path(@article) %> |
|
||||
<%= link_to 'Back', articles_path %>
|
||||
```
|
||||
|
||||
The second render just defines the partial template we want to render,
|
||||
|
|
Loading…
Reference in New Issue