質問編集履歴
4
詳しくするため
test
CHANGED
File without changes
|
test
CHANGED
@@ -139,3 +139,9 @@
|
|
139
139
|
https://github.com/taragano/Cloudinary_multiple_uploads
|
140
140
|
|
141
141
|
これを参考にどうすればいいのかわからないです
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
https://github.com/cloudinary/cloudinary_gem/blob/master/lib/cloudinary/carrier_wave/process.rb
|
146
|
+
|
147
|
+
module Cloudinary::CarrierWaveです
|
3
詳しくするため
test
CHANGED
File without changes
|
test
CHANGED
@@ -131,3 +131,11 @@
|
|
131
131
|
```
|
132
132
|
|
133
133
|
terminal上だとこんな感じです
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
https://www.oipapio.com/question-4101553
|
138
|
+
|
139
|
+
https://github.com/taragano/Cloudinary_multiple_uploads
|
140
|
+
|
141
|
+
これを参考にどうすればいいのかわからないです
|
2
エラー分追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -67,3 +67,67 @@
|
|
67
67
|
回答お願いしますmm
|
68
68
|
|
69
69
|
cloudinary使っています
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
include Cloudinary::CarrierWaveを開発環境でも適用させると
|
74
|
+
|
75
|
+
```ここに言語を入力
|
76
|
+
|
77
|
+
undefined method `all_versions_processors' for #<Array:0x00007fc78237fb30>
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
というエラーがif @information.saveの箇所ででます
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
```ここに言語を入力
|
86
|
+
|
87
|
+
Started POST "/information" for 10.0.2.2 at 2019-11-05 12:23:37 +0000
|
88
|
+
|
89
|
+
Cannot render console from 10.0.2.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
|
90
|
+
|
91
|
+
Processing by InformationController#create as HTML
|
92
|
+
|
93
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"HFJPRkvz0TggVn+fwswVtlVq16iyAQj2ul2QQYXTvi7JZxjmT2iV5saCKeB5X/RGSNfLNchy6BgziSHGbB33Mg==", "information"=>{"title"=>"2019 横浜国立大学 コーポレートファイナンス", "description"=>"2回目のです", "condition"=>"New", "image"=>[#<ActionDispatch::Http::UploadedFile:0x00007fc78239ac00 @tempfile=#<Tempfile:/tmp/RackMultipart20191105-6450-1p01wwc.JPG>, @original_filename="IMG_3007.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"information[image][]\"; filename=\"IMG_3007.JPG\"\r\nContent-Type: image/jpeg\r\n">]}, "commit"=>"Create Information"}
|
94
|
+
|
95
|
+
Cart Load (0.9ms) SELECT "carts".* FROM "carts" WHERE "carts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
|
96
|
+
|
97
|
+
↳ app/models/concerns/current_cart.rb:5
|
98
|
+
|
99
|
+
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
|
100
|
+
|
101
|
+
↳ /var/lib/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
|
102
|
+
|
103
|
+
(0.2ms) begin transaction
|
104
|
+
|
105
|
+
↳ app/controllers/information_controller.rb:29
|
106
|
+
|
107
|
+
Information Create (23.1ms) INSERT INTO "information" ("condition", "title", "description", "created_at", "updated_at", "image", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["condition", "New"], ["title", "2019 横浜国立大学 コーポレートファイナンス"], ["description", "2回目のです"], ["created_at", "2019-11-05 12:23:37.701281"], ["updated_at", "2019-11-05 12:23:37.701281"], ["image", "[\"px5n4xlwzhqsgnlibxta.jpg\"]"], ["user_id", 1]]
|
108
|
+
|
109
|
+
↳ app/controllers/information_controller.rb:29
|
110
|
+
|
111
|
+
(27.3ms) rollback transaction
|
112
|
+
|
113
|
+
↳ app/controllers/information_controller.rb:29
|
114
|
+
|
115
|
+
Completed 500 Internal Server Error in 165ms (ActiveRecord: 52.2ms)
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
NoMethodError (undefined method `all_versions_processors' for #<Array:0x00007fc78237fb30>):
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
app/controllers/information_controller.rb:29:in `block in create'
|
128
|
+
|
129
|
+
app/controllers/information_controller.rb:28:in `create'
|
130
|
+
|
131
|
+
```
|
132
|
+
|
133
|
+
terminal上だとこんな感じです
|
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -65,3 +65,5 @@
|
|
65
65
|
をやりました
|
66
66
|
|
67
67
|
回答お願いしますmm
|
68
|
+
|
69
|
+
cloudinary使っています
|