質問編集履歴
3
画像追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
![イメージ説明](b09b4b2b025a3c03f9adbc2e38607822.png)
|
2
2
|
|
3
|
+
![イメージ説明](0112bf10fe02e6b9c92da1f8e34f8696.png)
|
4
|
+
|
3
5
|
本来、右上にアイコンが出るようにコーディングしたいと思い、application.html.erb上に以下のようなコードを書いたのですが、反映されないのはどうしてでしょうか。よろしくお願いいたします。
|
4
6
|
|
5
7
|
|
2
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
[イメージ説明](5
|
1
|
+
![イメージ説明](b09b4b2b025a3c03f9adbc2e38607822.png)
|
2
|
-
|
3
|
-
|
4
2
|
|
5
3
|
本来、右上にアイコンが出るようにコーディングしたいと思い、application.html.erb上に以下のようなコードを書いたのですが、反映されないのはどうしてでしょうか。よろしくお願いいたします。
|
6
4
|
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
[イメージ説明](5fb81d6dc83eceab02038581e1449bbb.png)
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -10,6 +10,12 @@
|
|
10
10
|
|
11
11
|
```html
|
12
12
|
|
13
|
+
|
14
|
+
|
15
|
+
<!-- へッダやフッタなど共通して使用される部分を定義するページ -->
|
16
|
+
|
17
|
+
<!-- 全体で共有するhtml.erbで、rails newで自動生成されるファイル -->
|
18
|
+
|
13
19
|
<!DOCTYPE html>
|
14
20
|
|
15
21
|
<html>
|
@@ -20,19 +26,31 @@
|
|
20
26
|
|
21
27
|
<meta charset="utf-8">
|
22
28
|
|
23
|
-
<%= csrf_meta_tags %>
|
24
|
-
|
25
|
-
<%= csp_meta_tag %>
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
<% stylesheet_link_tag
|
30
|
-
|
31
|
-
|
29
|
+
<meta name="csrf-param" content="authenticity_token" />
|
30
|
+
|
32
|
-
|
31
|
+
<meta name="csrf-token" content="nnqPjAyRh6bBx8MNT5hSbhHTbu6LIRxN/fNCFseLmF3cmYvYd4ZawLj5YWC134RayKLskaQXQg1HQwtCzD4YWA==" />
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<link rel="stylesheet" media="all" href="/assets/blogs.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" data-turbolinks-track="reload" />
|
38
|
+
|
39
|
+
<link rel="stylesheet" media="all" href="/assets/application.self-8bc312fbd5212a07ce133d96554189deb341565bdf204628806bb3226874a153.css?body=1" data-turbolinks-track="reload" />
|
40
|
+
|
41
|
+
<script src="/assets/rails-ujs.self-d109d8c5c0194c8ad60b8838b2661c5596b5c955987f7cd4045eb2fb90ca5343.js?body=1" data-turbolinks-track="reload"></script>
|
42
|
+
|
43
|
+
<script src="/assets/activestorage.self-1ed4604ac2170045f1ffca4edb81a75246661555e4f9cf682bb8a21825e32e1c.js?body=1" data-turbolinks-track="reload"></script>
|
44
|
+
|
45
|
+
<script src="/assets/turbolinks.self-569ee74eaa15c1e2019317ff770b8769b1ec033a0f572a485f64c82ddc8f989e.js?body=1" data-turbolinks-track="reload"></script>
|
46
|
+
|
47
|
+
<script src="/assets/blogs.self-877aef30ae1b040ab8a3aba4e3e309a11d7f2612f44dde450b5c157aa5f95c05.js?body=1" data-turbolinks-track="reload"></script>
|
48
|
+
|
49
|
+
<script src="/assets/action_cable.self-69fddfcddf4fdef9828648f9330d6ce108b93b82b0b8d3affffc59a114853451.js?body=1" data-turbolinks-track="reload"></script>
|
50
|
+
|
51
|
+
<script src="/assets/cable.self-8484513823f404ed0c0f039f75243bfdede7af7919dda65f2e66391252443ce9.js?body=1" data-turbolinks-track="reload"></script>
|
52
|
+
|
33
|
-
|
53
|
+
<script src="/assets/application.self-66347cf0a4cb1f26f76868b4697a9eee457c8c3a6da80c6fdd76ff77e911715e.js?body=1" data-turbolinks-track="reload"></script>
|
34
|
-
|
35
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
36
54
|
|
37
55
|
|
38
56
|
|
@@ -48,7 +66,213 @@
|
|
48
66
|
|
49
67
|
<body>
|
50
68
|
|
51
|
-
<
|
69
|
+
<header>
|
70
|
+
|
71
|
+
<h1 class="headline">
|
72
|
+
|
73
|
+
<a href="/blogs">CARAVAN</a>
|
74
|
+
|
75
|
+
</h1>
|
76
|
+
|
77
|
+
<div class="social">
|
78
|
+
|
79
|
+
<i class="fa fa-facebook-square"></i>
|
80
|
+
|
81
|
+
<i class="fa fa-twitter-square"></i>
|
82
|
+
|
83
|
+
<i class="fa fa-instagram"></i>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</header>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<nav>
|
92
|
+
|
93
|
+
<ul class="nav-list">
|
94
|
+
|
95
|
+
<li class="nav-list-item">
|
96
|
+
|
97
|
+
<a href="#">Home</a>
|
98
|
+
|
99
|
+
</li>
|
100
|
+
|
101
|
+
<li class="nav-list-item">About</li>
|
102
|
+
|
103
|
+
<li class="nav-list-item">Topic</li>
|
104
|
+
|
105
|
+
</ul>
|
106
|
+
|
107
|
+
</nav>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<div class="main-visual">
|
112
|
+
|
113
|
+
<div class="main-visual-content">
|
114
|
+
|
115
|
+
<p class="main-visual-text">
|
116
|
+
|
117
|
+
The world is a book<br>
|
118
|
+
|
119
|
+
and those who do not travel<br>
|
120
|
+
|
121
|
+
read only one page.
|
122
|
+
|
123
|
+
</p>
|
124
|
+
|
125
|
+
<p class="main-visual-name">
|
126
|
+
|
127
|
+
St. Augustine
|
128
|
+
|
129
|
+
</p>
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<main class="clearfix">
|
138
|
+
|
139
|
+
<section class="single-blog">
|
140
|
+
|
141
|
+
<h2 class="blog-headline">Blog</h2>
|
142
|
+
|
143
|
+
<section class="blog-box">
|
144
|
+
|
145
|
+
<h3 class="blog-box-headline">
|
146
|
+
|
147
|
+
2
|
148
|
+
|
149
|
+
</h3>
|
150
|
+
|
151
|
+
<div class="blog-box-content">
|
152
|
+
|
153
|
+
<p class="category">
|
154
|
+
|
155
|
+
宇宙
|
156
|
+
|
157
|
+
</p>
|
158
|
+
|
159
|
+
<p class="blog-date">
|
160
|
+
|
161
|
+
2019-01-10 09:08:18 UTC
|
162
|
+
|
163
|
+
</p>
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
<img class="single-image" src="/assets/img/forest-faf14705758c6cb45a63de8450df177db9182556513bd6048cc742cf18cffff4.jpg" />
|
168
|
+
|
169
|
+
<p class="single-text">
|
170
|
+
|
171
|
+
wow
|
172
|
+
|
173
|
+
</p>
|
174
|
+
|
175
|
+
<a class="edit-figure" href="/blogs/6/edit">編集</a>
|
176
|
+
|
177
|
+
<a class="destroy-figure" rel="nofollow" data-method="delete" href="/blogs/6">削除</a>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<div class="author-case clearfix">
|
182
|
+
|
183
|
+
<div class="author-image"></div>
|
184
|
+
|
185
|
+
<div class="author-box">
|
186
|
+
|
187
|
+
<p class="author-name">By JOHN SMITH / Photographer</p>
|
188
|
+
|
189
|
+
<p class="author-text">His black and white landscapes, often captured at times<br>of the day and night when the light is fleeting, or in poor<br>weather conditions, such as rain, fog, or snow, are<br>reminiscent of the calm in a storm all with an ethereal<br>quality. </p>
|
190
|
+
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
</section>
|
196
|
+
|
197
|
+
</section>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
<div class="sidebar">
|
202
|
+
|
203
|
+
<section class="popular">
|
204
|
+
|
205
|
+
<h2 class="sidebar-headline">Popular</h2>
|
206
|
+
|
207
|
+
<div class="sidebar-contents">
|
208
|
+
|
209
|
+
<p class="popular-text">To solve old problems,<br>study new species</p>
|
210
|
+
|
211
|
+
<p class="popular-text">Why Earth may someday<br>look like Mars</p>
|
212
|
+
|
213
|
+
<p class="popular-text">What will humans look<br>like in 100 years?</p>
|
214
|
+
|
215
|
+
<p class="popular-text">How to grow a forest<br>in your backyard</p>
|
216
|
+
|
217
|
+
<p class="popular-text">How humans could evolve<br>to survive in space</p>
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</section>
|
222
|
+
|
223
|
+
<section class="instagram">
|
224
|
+
|
225
|
+
<h2 class="instagram-headline">Instagram</h2>
|
226
|
+
|
227
|
+
<div class="sidebar-contents clearfix">
|
228
|
+
|
229
|
+
<div class="instagram-box"></div>
|
230
|
+
|
231
|
+
<div class="instagram-box"></div>
|
232
|
+
|
233
|
+
<div class="instagram-box"></div>
|
234
|
+
|
235
|
+
<div class="instagram-box"></div>
|
236
|
+
|
237
|
+
<div class="instagram-box"></div>
|
238
|
+
|
239
|
+
<div class="instagram-box"></div>
|
240
|
+
|
241
|
+
</section>
|
242
|
+
|
243
|
+
<section class="categories">
|
244
|
+
|
245
|
+
<h2 class="categories-headline">Categories</h2>
|
246
|
+
|
247
|
+
<div class="sidebar-contents">
|
248
|
+
|
249
|
+
<p class="categories-text">Technology(15)</p>
|
250
|
+
|
251
|
+
<p class="categories-text">Business(23)</p>
|
252
|
+
|
253
|
+
<p class="categories-text">Entertainment(12)</p>
|
254
|
+
|
255
|
+
<p class="categories-text">Nature(32)</p>
|
256
|
+
|
257
|
+
<p class="categories-text">Education(9)</p>
|
258
|
+
|
259
|
+
<p class="categories-text">Adventure(23)</p>
|
260
|
+
|
261
|
+
<p class="categories-text">Communication(14)</p>
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
</section>
|
266
|
+
|
267
|
+
</div>
|
268
|
+
|
269
|
+
</main>
|
270
|
+
|
271
|
+
<footer>
|
272
|
+
|
273
|
+
<p class="footer-text">© All rights recerved by Infratop.Inc.</p>
|
274
|
+
|
275
|
+
</footer>
|
52
276
|
|
53
277
|
<!-- ↑各ビューの内容として別途作成されたhtmlファイルが読み込まれます -->
|
54
278
|
|