[英]undefined method `escape' for URI:Module in ruby 3
將我的 Rails 應用程序從 Rails 6.0.1 更新到 Rails 7.0.2.3 后我遇到了寶石“回形針”的問題,'~> 6.1.0' 在應用程序中使用它時會出現錯誤: 在我的應用程序中的用法: 當 ruby gemfile 本身存在錯誤時如何解決此問題,在此先感謝。 ...
[英]undefined method `escape' for URI:Module in ruby 3
將我的 Rails 應用程序從 Rails 6.0.1 更新到 Rails 7.0.2.3 后我遇到了寶石“回形針”的問題,'~> 6.1.0' 在應用程序中使用它時會出現錯誤: 在我的應用程序中的用法: 當 ruby gemfile 本身存在錯誤時如何解決此問題,在此先感謝。 ...
[英]Failed on Migration using Paperclip on Rails
我正在嘗試使用 Rails 6.1 安裝 Paperclip 我運行了這個命令: rails g paperclip Model image 我得到了這個遷移: 但是我得到了這個錯誤: 然后我把 class AddAttachmentImageToExercises < ActiveRecor ...
[英]Paperclip gem Rails [6.1] : migration error wrong number of arguments (given 3, expected 2)
我試圖在我的rails應用程序上安裝回形針gem,我連續遇到3個問題,我想向他們指出,這可能與最后一個問題有關: 1-我無法安裝回形針依賴項“mimemagic”=>我通過將文件freedesktop.org.xml.in及其變量FREEDESKTOP_MIME_TYPES_PATH到我的 ...
[英]True Paperclip Replacement (Speficially Structure of the File System)
使用 Rails 6,我需要替換 Paperclip,但我找不到任何可以輕松復制它的替換。 具體來說,使用的文件結構回形針: 在過去的十年中,我們構建了幾個依賴該結構(或類似結構)的工具,此外,我們的用戶希望在上傳圖像后,他們可以引用具有相同文件名和永久 url 的 styles(不是隨機生成的像 ...
[英]Rails 6, Paperclip, S3, s3_direct_upload @attachment.save not saving after the s3_direct_upload completes
我已經將一個名為 FilterTrak 的應用程序從舊版本的 Rails v4.2 重寫為 Rails v6,現在除了圖片上傳的一部分外,我的所有工作都可以正常工作。 該應用程序使用 Paperclip、aws-sdk-v1 和 s3_direct_upload。 我之前在使用 s3_direct ...
[英]Rails: Rendering video uploaded by paperclip
我正在使用 Rails 6.1 + Ruby 3 並嘗試允許用戶上傳視頻,然后在應用程序中觀看它們。 剪輯文件 顯示.html.erb 我一直在 RailsAdmin 中成功上傳此視頻,但是當我嘗試查看它時,出現此錯誤: URI:Module 的未定義方法“escape” 這是 ...
[英]Rails Paperclip Error after upgrading ruby from 2.3.1 to 3.0.1
現有項目在 ruby 2.3.1 中,並將版本升級到 3.0.1 (rails 6.1.4) 和相關的 gem。 將 gem 更新為“回形針”到“kt-回形針”。 上傳文檔時出現以下錯誤。 錯誤: [paperclip] Trying to link /tmp/RackMultipart20210 ...
[英]Is there a way to examine the URL used by the paperclip gem?
我正在使用帶有 rails 4.2 和 MinIO 的 kreeti/kt-paperclip gem。 我相信我已經正確設置了模型,但我收到“Aws::S3::Errors::InvalidAccessKeyId:您提供的 AWS 訪問密鑰 ID 在我們的記錄中不存在。” 我進行了驗證路徑和憑據的 ...
[英]rails: migration issue with paperclip gem
我正在嘗試遷移 rails 應用程序,但失敗了。 回形針 gem 遷移中的問題。 我嘗試使用兩種方式進行遷移,但它們都無法正常工作: 也試過: 運行rails db:migrate顯示錯誤: ...
[英]I want to migrate paperclip gem to active_storage Ruby on Rails 7
...像這樣: 回形針2active_storage 更新一定要觀看鏈接的視頻演示,因為文本文檔沒有呈現所有的怪癖! 所以我安裝並配置了 rails 7 和 gem 'mini_magick'。 現在我想引用的腳本將更新我所有的模型、視圖和控制器: 但是,當我運行它時,我得到這樣的錯誤: mi ...
[英]Can no longer bundle install all of my applications on Rails that require Paperclip due to MimeMagic gem no longer existing?
我有一個幾周前可以運行的程序,我把它擦掉了,不得不重新安裝我的 ruby 和 rails 環境,現在我不能捆綁安裝相同的程序,因為 Paperclip 需要 Mimemagic 並且顯然寶石的工作版本不再存在。 Any versions of the gem that remain requir ...
[英]when I use paperclip migration error occur
運行此命令 => rails generate paperclip photo image 創建遷移文件 遷移錯誤 ...
[英]Rails: AWS S3 Access denied error with Paperclip upload
每當我嘗試使用回形針和 aws-sdk-s3 上傳圖像時,我都會收到Aws::S3::Errors::AccessDenied Access Denied 。 我幾乎嘗試了互聯網上所有可用的解決方案。 我已經嘗試從這里配置回形針默認選項寶石使用gem "paperclip", git: "git:/ ...
[英]adding image with paperclip failed NoHandlerError
在 rails 6 中使用 Paperclip 6.1.0 我得到了這個錯誤: Paperclip::AdapterRegistry::NoHandlerError (未找到“logo.jpg”的處理程序): 在我的 model 我有: 異常在以下位置引發: 帶參數: _form.html.e ...
[英]Rails migrations complains about "add_attachment"
這不是重復: Rails 遷移抱怨使用回形針的未定義方法“附件” 所以我們使用了 paperclip 並且現在已經切換到 activestorage 但是我們的一些舊遷移使用add_attachment來自add_attachment這使得 rails 抱怨這個錯誤消息,因為我們在 gemfile ...
[英]How can I avoid accepting broken images in ActiveStorage?
我目前正在將 Rails 應用程序(驅動 screenshots.debian.net)從 Paperclip 遷移到 ActiveStorage。 它允許用戶上傳 PNG 圖像,然后顯示給所有用戶。 TL;DR:上傳表單接受損壞的圖像。 Imagemagick“接受”它們。 ActiveS ...
[英]TypeError: Illegal invocation at forEach when creating attachments
嘗試創建關聯模型的附件,但出現錯誤,不知道如何調試 firefox 說 'forEach' 調用了一個沒有實現接口 FormData 的對象; chrome - 類型錯誤:復制時在 forEach 處非法調用 == (forEach(destination, function(value, ...
[英]Paperclip uploads for docx file is being downloaded as zip files?
我檢查了 docx 文件的 Mimetype,它顯示: 'application/octet-stream' 但是在沒有任何內容的情況下檢查它會將 application/vnd.openxmlformats-officedocument.wordprocessingml.document 顯示為 ...
[英]Undefined method `image' in Shrine
我嘗試將 Shrine gem 添加到使用 Paperclip 的現有項目中。 我在一個新的 model 中添加了一個 Shrine 圖像(只是為了檢查)。 所以我用這個數據庫表創建了 model Country: 還有這個 model: 之后,我嘗試從國家/地區獲取圖像並收到此圖像(盡管 ima ...
[英]Getting undefined method `builder_photo' for nil:NilClass error
我有一個存儲在數據庫表生成器中的生成器配置文件圖像。 我想在導航欄中顯示作為構建器配置文件圖像的current_user圖像。 我用過的sp。 <%= image_tag(@builder.builder_photo.url, class: 'builder-img') %> 這顯示了 ...