5.9 Adding Links

You can now create, show, and list posts. Now let's add some links to
navigate through pages.

Open app/views/welcome/index.html.erb and modify it as follows:
<h1>Hello, Rails!</h1>
<%= link_to "My Blog", controller: "posts" %>

The link_to method is one of Rails' built-in view helpers. It creates a
hyperlink based on text to display and where to go - in this case, to
the path for posts.