From 0d3f15a0221bc0765b6829513579aece88d6179e Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Wed, 28 Oct 2020 17:04:25 -0500 Subject: [PATCH] =?UTF-8?q?Add=20GS=20guide=20=C2=A7=20Finishing=20Up=20(U?= =?UTF-8?q?pdating)=20[ci-skip]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #39920. Resolves #38329. Co-Authored-By: Ryan Bigg --- guides/source/getting_started.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 620d27aacbb..84993eedbec 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -1197,6 +1197,22 @@ And now, let's create a very similar `app/views/articles/edit.html.erb`: TIP: To learn more about partials, see [Layouts and Rendering in Rails ยง Using Partials](layouts_and_rendering.html#using-partials). +#### Finishing Up + +We can now update an article by visiting its edit page, e.g. +. To finish up, let's link to the edit +page from the bottom of `app/views/articles/show.html.erb`: + +```html+erb +

<%= @article.title %>

+ +

<%= @article.body %>

+ +
    +
  • <%= link_to "Edit", edit_article_path(@article) %>
  • +
+``` + ### Deleting Articles We're now ready to cover the "D" part of CRUD, deleting articles from the