Skip to content

Commit 53c72c0

Browse files
authored
Merge pull request #1952 from gskaeru/patch-1
[guides] Loginリンクをレイアウトに移動
2 parents d76eb9c + 4638b53 commit 53c72c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/ja/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ Log outボタンをクリックすると、indexページのNew productリンク
15091509
オプションとして、先ほどの`app/views/layouts/application.html.erb`レイアウトの`<nav>`セクションに以下のルーティングへのリンクも追加して、認証されていない場合はLoginリンクを表示するようにしてもよいでしょう。
15101510

15111511
```erb
1512-
<%# app/views/products/index.html.erb %>
1512+
<%# app/views/layouts/application.html.erb %>
15131513
<%= link_to "Login", new_session_path unless authenticated? %>
15141514
```
15151515

0 commit comments

Comments
 (0)