Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
附加文件时的 Rails ActiveStorage 范围
使用 ActiveStorage 时 如何创建附加文件的范围 例如 class Check lt ActiveRecord Base has one attached image end 我想要类似的东西Check has attached
rubyonrails
ruby
rubyonrails5
railsactivestorage
将 S3 与 Active Storage 结合使用时出现“请求已过期”
我是第一次使用 ActiveStorage 在开发中一切正常 但在生产 Heroku 中我的图像无缘无故地消失了 第一次显示正常 但现在没有显示图像 在控制台中我可以看到这个错误 GET https XXX s3 amazonaws com
rubyonrails
amazons3
rubyonrails5
railsactivestorage
Rails API ActiveStorage DirectUpload 产生 422 错误 InvalidAuthenticityToken
我对 Rails API 应用程序主动存储有疑问 我有 React 从我想上传文件的地方 import React from react import DirectUpload from activestorage class SignIn
rubyonrails
ReactJS
railsactivestorage
Rails 5.2 Active Storage 清除/删除附件不会删除 Blob 或附件记录
我正在使用 Rails 5 2 并尝试使用 Amazon S3 设置 Active Storage 我的应用程序可以完全访问 S3 并且我可以附加avatar图像到user 但当我尝试删除头像时 遇到以下问题 gt user avatar
railsactivestorage
rubyonrails52
如何更新 ActiveStorage 中的附件 (Rails 5.2)
我最近将我的项目升级到最新的 Rails 版本 5 2 以获得ActiveStorage 一个处理附件上传到云服务 如 AWS S3 Google Cloud 等 的库 几乎一切都工作正常 我可以上传并附加图像 user avatar at
rubyonrails
activerecord
rubyonrails5
railsactivestorage
Rails Active Storage 无模型
Rails Active Storage 可以在没有模型支持的情况下使用吗 我有一个表格 需要上传文件 但我不希望将其附加到模型中 我只需要上传文件 以便我可以使用后台作业处理它 然后将其删除 Yes 当 ActiveStorage 由模型
rubyonrails
railsactivestorage
如何将自定义服务添加到 ActiveStorage
我想向 ActiveStorage 添加自定义服务 因为我想覆盖url的方法ActiveStorage 服务 S3Service https github com rails rails blob e970d15211a8efd7349ff
rubyonrails
amazonwebservices
railsactivestorage
使用 Active Storage 在 active_admin 中上传多个图像
我发现有关在 activeadmin 中使用 Active Storage 上传图像的有用文章 https medium com maris cilitis using ruby on rails active storage image
activeadmin
railsactivestorage
rubyonrails52
Rspec :存根 ActiveStorage 下载方法
我开发的系统使用 ActiveStorage 将缓存数据存储在 S3 上 然后再将其用于其他用途 在我的规范中 我想存根该文件的下载方法 并加载特定文件以进行测试 allow user cached data to receive down
rubyonrails
rspec
stub
railsactivestorage
是否可以阻止 ActiveStorage 删除服务存储上的文件?
我在用着ActiveStorage处理我的 Rails 应用程序中的附件 更新模型的附件时 它似乎将清除作业排入队列 并删除远程存储服务上以前的附加文件 S3 here 我不想要我的文件S3要系统删除的存储桶 即使我的数据库中没有附加任何记
rubyonrails
railsactivestorage
Rails 6 Active Storage:无法找到或构建 blob:预期可附加,但为零
刚刚创建了一个新的 Rails 6 应用程序 我试图通过使用 Rails 脚手架生成的表单将图像添加到 active storage blob 而不是替换它们 遵循文档 https guides rubyonrails org active
rubyonrails
railsactivestorage
rubyonrails6
如何自定义 Amazon S3 中 Rails 5.2 ActiveStorage 附件的路径?
添加附件时 例如 has one attached resume attachment 保存的文件最终位于 S3 存储桶的顶层 如何将它们添加到子目录中 例如 我的旧回形针配置可以按型号名称在目录中分类 你不能 到时候 只有一种选择 has
rubyonrails
amazons3
railsactivestorage
Active Storage Rails 5.2 出现 Blob 错误
我刚刚升级了5 1 4 应用程序升级到 5 2 并尝试将 Paperclip 替换为 ActiveStorage 目前 当尝试使用图像更新现有记录时 出现以下错误 无法自动加载常量 ActiveStorage Blob Analyzable
rubyonrails
blob
railsactivestorage
ActiveModel::UnknownAttributeError 未知属性“头像” - ActiveStorage
Currently I m trying to attach an avatar field on a Profile I get the following error 但是 根据文档 我添加了以下关系 avatar到个人资料 model
rubyonrails5
railsactivestorage
获取 Active Storage 变体的元数据
我有一个 Active Storage 图像变体 例如 我正在尝试获取width and height该变体的值 因为它们是未知的 用于width and heightHTML 属性 我预计他们会在这里 model logo image v
rubyonrails
railsactivestorage
主动存储种子Rails
我想为我的数据库添加一些包含活动存储附件的实例 但我不知道如何做到这一点 我尝试了一些方法但没有成功 这是我的种子 User create email email protected cdn cgi l email protection p
rubyonrails
ruby
railsactivestorage
配置 ActiveStorage 以使用具有 IAM 角色的 S3
我正在尝试配置 ActiveStorage 以使用 S3 存储桶作为存储后端 但我不想传递任何access key id secret access key region 相反 我想使用之前定义的 IAM 角色 提到了这样的配置here h
无法将图像解析为 URL:to_model 委托给附件,但在 Rails 5.2 中附件为零
我有以下表格 div h2 prohibited this user from being saved h2 ul li li ul div
rubyonrails
Forms
model
railsactivestorage
Rails 5.2 ActiveStorage保存然后读取Exif数据
在 Rails 5 2 上 我尝试通过 ActiveStorage 保存头像 但似乎没有将图像方向数据保存在活动存储 blob 中 我通过创建操作中的 file field 保存头像 user model has one attached
rubyonrails
ruby
imageprocessing
railsactivestorage
minimagick
在 Active storage Rails 5.2 中按文件名排序多个图像
我在 Post 模型中有 has many attached 图像关系 我想在 帖子显示 页面上显示图像时按文件名对图像进行排序 如何按文件名排序 例子 是否可以通过像 active storage blobs filename 之类的东西
rubyonrails
railsactivestorage
«
1
2
3
»