diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-01-17 14:06:33 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-01-17 14:06:33 +0100 |
commit | b7dc096c9975088b8d7c12eb90bea499fc69b371 (patch) | |
tree | 464ddd2b07f1b709779b95344620aafe6f606fff /guides | |
parent | 0862da367c5a83020bea084cbd1b2aaba070e840 (diff) | |
parent | 3447e765361f524d365ffd02b24abad15f711ea4 (diff) | |
download | rails-b7dc096c9975088b8d7c12eb90bea499fc69b371.tar.gz rails-b7dc096c9975088b8d7c12eb90bea499fc69b371.tar.bz2 rails-b7dc096c9975088b8d7c12eb90bea499fc69b371.zip |
Merge pull request #18493 from twoller/master
Consistent anchor text in nav links, new image [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/assets/images/getting_started/article_with_comments.png | bin | 15190 -> 22560 bytes | |||
-rw-r--r-- | guides/source/getting_started.md | 20 |
2 files changed, 10 insertions, 10 deletions
diff --git a/guides/assets/images/getting_started/article_with_comments.png b/guides/assets/images/getting_started/article_with_comments.png Binary files differindex 117a78a39f..c489e4c00e 100644 --- a/guides/assets/images/getting_started/article_with_comments.png +++ b/guides/assets/images/getting_started/article_with_comments.png diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index cc916e86d2..5945d48e98 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -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: @@ -1684,8 +1684,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 @@ -1765,8 +1765,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 @@ -1831,8 +1831,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 @@ -1881,8 +1881,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, |