質問編集履歴
4
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -106,7 +106,8 @@
|
|
106
106
|
一応、ブラウザのキャッシュは削除してみましたが治りませんでした。
|
107
107
|
|
108
108
|
ページを検証しても、
|
109
|
+
```
|
109
|
-
|
110
|
+
<div class="content_post" style="background-image: url(https://cdn.pixabay.com/photo/2018/05/30/00/24/thunderstorm-3440450_960_720.jpg);">
|
110
111
|
<p>sasaas</p>
|
111
112
|
<span class="name">kokok</span>
|
112
113
|
</div>
|
3
再追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -103,4 +103,12 @@
|
|
103
103
|

|
104
104
|
|
105
105
|
|
106
|
-
一応、ブラウザのキャッシュは削除してみましたが治りませんでした。
|
106
|
+
一応、ブラウザのキャッシュは削除してみましたが治りませんでした。
|
107
|
+
|
108
|
+
ページを検証しても、
|
109
|
+
```<div class="content_post" style="background-image: url(https://cdn.pixabay.com/photo/2018/05/30/00/24/thunderstorm-3440450_960_720.jpg);">
|
110
|
+
<p>sasaas</p>
|
111
|
+
<span class="name">kokok</span>
|
112
|
+
</div>
|
113
|
+
```
|
114
|
+
特に問題はなさそうに見えました。
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -42,4 +42,65 @@
|
|
42
42
|

|
43
43
|
|
44
44
|
成功作 画像
|
45
|
-

|
45
|
+

|
46
|
+
|
47
|
+
追記
|
48
|
+
application.html.erb
|
49
|
+
```
|
50
|
+
<!DOCTYPE html>
|
51
|
+
<html>
|
52
|
+
<head>
|
53
|
+
<title>Pictweet</title>
|
54
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
55
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
56
|
+
<%= csrf_meta_tags %>
|
57
|
+
<script type="text/javascript">
|
58
|
+
WebFontConfig = {
|
59
|
+
google: { families: [ 'Unica+One::latin' ] }
|
60
|
+
};
|
61
|
+
(function() {
|
62
|
+
var wf = document.createElement('script');
|
63
|
+
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
|
64
|
+
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
|
65
|
+
wf.type = 'text/javascript';
|
66
|
+
wf.async = 'true';
|
67
|
+
var s = document.getElementsByTagName('script')[0];
|
68
|
+
s.parentNode.insertBefore(wf, s);
|
69
|
+
})();
|
70
|
+
</script>
|
71
|
+
</head>
|
72
|
+
|
73
|
+
<body>
|
74
|
+
<header class="header">
|
75
|
+
<div class="header__bar row">
|
76
|
+
<h1 class="grid-6"><a href="/">Pic</a></h1>
|
77
|
+
<% if user_signed_in? %>
|
78
|
+
<div class="user_nav grid-6">
|
79
|
+
<%= link_to "ログアウト",destroy_user_session_path,method: :delete %>
|
80
|
+
<a class="post" href="/tweets/new">投稿する</a>
|
81
|
+
</div>
|
82
|
+
<% else %>
|
83
|
+
<div class="grid-6">
|
84
|
+
<%= link_to "ログイン",new_user_session_path, class: 'post'%>
|
85
|
+
<%= link_to "新規登録",new_user_registration_path,class: 'post'%>
|
86
|
+
</div>
|
87
|
+
<% end %>
|
88
|
+
</div>
|
89
|
+
</header>
|
90
|
+
|
91
|
+
<%= yield %>
|
92
|
+
|
93
|
+
<footer>
|
94
|
+
<p>
|
95
|
+
Copyright PicTweet 2014.
|
96
|
+
</p>
|
97
|
+
</footer>
|
98
|
+
</body>
|
99
|
+
</html>
|
100
|
+
```
|
101
|
+
|
102
|
+
ディレクトリ構造
|
103
|
+

|
104
|
+
|
105
|
+
|
106
|
+
一応、ブラウザのキャッシュは削除してみましたが治りませんでした。
|
1
```
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,7 +19,8 @@
|
|
19
19
|
前に作った方はうまく動きませんでした。
|
20
20
|
以下は、application.css
|
21
21
|
|
22
|
+
```
|
22
|
-
|
23
|
+
/*
|
23
24
|
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
24
25
|
* listed below.
|
25
26
|
*
|
@@ -34,7 +35,7 @@
|
|
34
35
|
*= require_tree .
|
35
36
|
*= require_self
|
36
37
|
*/
|
37
|
-
|
38
|
+
```
|
38
39
|
|
39
40
|
おそらく、CSSの問題なのでapplicationが怪しいと思うのですが原因が全く分かりません。
|
40
41
|
失敗作 画像
|