質問編集履歴
1
viewを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -144,6 +144,34 @@
|
|
144
144
|
|
145
145
|
|
146
146
|
|
147
|
+
画像を保存するところのView
|
148
|
+
|
149
|
+
```html
|
150
|
+
|
151
|
+
<%= form_for(@company) do |f| %>
|
152
|
+
|
153
|
+
<label for="image" class="col col-xs-12">画像</label>
|
154
|
+
|
155
|
+
<div class="col col-xs-12">
|
156
|
+
|
157
|
+
<%= f.fields_for :images do |image| %>
|
158
|
+
|
159
|
+
<%= image.label :image %>
|
160
|
+
|
161
|
+
<%= image.file_field :image %>
|
162
|
+
|
163
|
+
<%end%>
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
<% end %>
|
168
|
+
|
169
|
+
```
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
147
175
|
###試したこと
|
148
176
|
|
149
177
|
ネストせずにテーブル内のカラムでcarrierwaveを適応させたところ、問題なく画像は保存されました。
|