https://teratail.com/questions/218989
tarted POST "/information" for 60.114.58.27 at 2019-10-23 15:19:09 +0000 Cannot render console from 60.114.58.27! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 Processing by InformationController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"b3J4JfJEXdcC4vVabTka+cKiiKOmmFmfRWYDORJJsQdQzS/RhQD+rFWiHPhoVOuP2I1R5qvdGEkFTAaDKrrA/g==", "information"=>{"title"=>"image", "description"=>"最近のです", "condition"=>"New", "image"=>[#<ActionDispatch::Http::UploadedFile:0x00007f4f81addf e0 @tempfile=#<Tempfile:/tmp/RackMultipart20191023-14645-1ftl8wu.JPG>, @original_filename="IMG_3010.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"information[image][]\"; filename=\"IMG_3010.JPG\"\r\nContent-Type: image/jpeg\r\n">]}, "commit"=>"Create Information"} Cart Load (0.1ms) SELECT "carts".* FROM "carts" WHERE "carts"."id" = ? LIMIT ? [["id", 16], ["LIMIT", 1]] ↳ app/models/concerns/current_cart.rb:5 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] ↳ vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 (0.1ms) begin transaction ↳ app/controllers/information_controller.rb:29 (0.0ms) rollback transaction ↳ app/controllers/information_controller.rb:29 Rendering information/new.html.slim within layouts/application Rendered information/_form.html.slim (9.1ms) Rendered information/new.html.slim within layouts/application (12.7ms) (0.2ms) SELECT COUNT(*) FROM "line_items" WHERE "line_items"."cart_id" = ? [["cart_id", 16]] ↳ app/helpers/application_helper.rb:3 Rendered shared/_navbar.html.slim (7.6ms) #<ActiveModel::Errors:0x00007f4f819a73d8 @base=#<Information id: nil, condition: "New", title: "image", description: "最近のです", created_at: nil, updated_at: nil, image: nil, user_id: 4>, @messages={:image=>["Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: You must have ImageMagick or GraphicsMagick installed"], :title=>[], :description=>[], :condition=>[]}, @details={:image=>[{:error=>"Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: You must have ImageMagick or GraphicsMagick installed"}]}> Completed 200 OK in 73ms (Views: 59.6ms | ActiveRecord: 0.5ms)
というエラーが出たためbrew install imagemagickかbrew install graphicsmagickをしようと考えました
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) test -r ~/.bash_profile && echo "eval $($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile echo "eval $($(brew --prefix)/bin/brew shellenv)" >>~/.profile
回答者の方に教えていただいたこのコードを打つと500エラーが出てcss,jsが使えなくなってしまいました
https://qiita.com/tikogr/items/e19c2a2cec41a8d4d85f
このサイトにそってやれば大丈夫でしょうか?
詳しい方お願いしますmm
cloud9からvagrantに変えました、virtualbox使ってます
回答1件
あなたの回答
tips
プレビュー