質問編集履歴

1

users/edit.html.erb内の id および class の変更。

2021/07/16 09:02

投稿

punchan36
punchan36

スコア105

test CHANGED
File without changes
test CHANGED
@@ -113,3 +113,25 @@
113
113
  Rails 5.2.3
114
114
 
115
115
  jquery 1.12.4
116
+
117
+
118
+
119
+ ### 追記
120
+
121
+
122
+
123
+ ご指摘の通り`id`と`class`の使い方が逆になっておりましたので、下記の様に訂正いたします。
124
+
125
+
126
+
127
+ **users/edit.html.erb**
128
+
129
+ ```Rails
130
+
131
+ <input name="image" type="file" accept=".png, .jpg, .jpeg, .gif" id="file_photo" class="file_photo" style="display:none;">
132
+
133
+
134
+
135
+ <input name="cover_image" type="file" accept=".png, .jpg, .jpeg, .gif" id="file_photo2" class="file_photo" style="display:none;">
136
+
137
+ ```