質問編集履歴
1
winterboum様、viewのコードを追記させて頂きました。ご確認いただき、アドバイスしてくださると幸いです。
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
###
|
27
|
+
### application.html.erb内のコード
|
28
28
|
|
29
29
|
|
30
30
|
|
@@ -32,6 +32,8 @@
|
|
32
32
|
|
33
33
|
<!DOCTYPE html>
|
34
34
|
|
35
|
+
<!DOCTYPE html>
|
36
|
+
|
35
37
|
<html>
|
36
38
|
|
37
39
|
<head>
|
@@ -54,6 +56,88 @@
|
|
54
56
|
|
55
57
|
</head>
|
56
58
|
|
59
|
+
|
60
|
+
|
61
|
+
<body>
|
62
|
+
|
63
|
+
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
|
64
|
+
|
65
|
+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
66
|
+
|
67
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
68
|
+
|
69
|
+
<div class="container" >
|
70
|
+
|
71
|
+
<nav class="navbar navbar-light bg-light">
|
72
|
+
|
73
|
+
<div class="container-fluid">
|
74
|
+
|
75
|
+
<%= link_to("GYMOHA APP", root_path, { class:"navbar-link"}) %>
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<ul class="nav navbar-nav navbar-right">
|
80
|
+
|
81
|
+
<li><%= link_to "ホーム", root_path %></li>
|
82
|
+
|
83
|
+
<li><%= link_to "GYMOHAとは?", about_path %></li>
|
84
|
+
|
85
|
+
<% if logged_in? %>
|
86
|
+
|
87
|
+
<li><%= link_to "ユーザー一覧", '#' %></li>
|
88
|
+
|
89
|
+
<li class="dropdown">
|
90
|
+
|
91
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
92
|
+
|
93
|
+
アカウント <b class="caret"></b>
|
94
|
+
|
95
|
+
</a>
|
96
|
+
|
97
|
+
<ul class="dropdown-menu">
|
98
|
+
|
99
|
+
<li><%= link_to "プロフィール", current_user %></li>
|
100
|
+
|
101
|
+
<li><%= link_to "設定", '#' %></li>
|
102
|
+
|
103
|
+
<li class="divider"></li>
|
104
|
+
|
105
|
+
<li>
|
106
|
+
|
107
|
+
<%= link_to "ログアウト", logout_path, method: :delete %>
|
108
|
+
|
109
|
+
</li>
|
110
|
+
|
111
|
+
</ul>
|
112
|
+
|
113
|
+
</li>
|
114
|
+
|
115
|
+
<% else %>
|
116
|
+
|
117
|
+
<li><%= link_to "ログイン", login_path %></li>
|
118
|
+
|
119
|
+
<li><%= link_to "会員登録", signup_path %></li>
|
120
|
+
|
121
|
+
<% end %>
|
122
|
+
|
123
|
+
</ul>
|
124
|
+
|
125
|
+
</nav>
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
</header>
|
130
|
+
|
131
|
+
<body>
|
132
|
+
|
133
|
+
<%= yield %>
|
134
|
+
|
135
|
+
</body>
|
136
|
+
|
137
|
+
</html>
|
138
|
+
|
139
|
+
|
140
|
+
|
57
141
|
```
|
58
142
|
|
59
143
|
|