腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2912)
视频
沙龙
1
回答
Shrine
::
Error
(
storage
:
store
未在
ImageUploader
上
注册
)
ruby-on-rails
、
shrine
我使用的是
shrine
和一个照片模型。当我上载文件时,create操作抛出此错误
Shrine
::
Error
(
storage
:
store
未在
ImageUploader
上
注册
) 我查了一下,每个人都建议将
shrine
.rb的名称改为类似01_
shrine
.rb的名称,这样它就可以更早地加载。我在models文件夹中有一个image_uploader.rb,在config / initia
浏览 12
提问于2021-01-12
得票数 0
1
回答
Ruby/Rails -
Shrine
::
Error
(
storage
:
store
没有在
ImageUploader
上
注册
)
ruby-on-rails
、
ruby
、
shrine
在进行了我认为需要的更改之后,当我尝试访问与
ImageUploader
的Attacher关联的旧模型的属性时,我得到了这个错误:问题是:我没有定义一个存储“存储”,但那是因为我想要有一个image_
store
和一个raw_
store
。non-Rails apps
Shrine
.plugin :de
浏览 16
提问于2020-05-26
得票数 1
2
回答
你是如何用神殿播种图像的?
ruby-on-rails
、
ruby-on-rails-5
、
shrine
(:
store
).upload(File.open(Rails.root+"app/assets/images/seed/thor.png"))JSON::ParserError in
shrine
.rbrequire "
shrine
/
storage
/cloudinary" cloud_name:cac
浏览 3
提问于2017-11-13
得票数 6
回答已采纳
3
回答
如何防止从S3中删除上传的文件
ruby-on-rails
、
amazon-web-services
、
amazon-s3
、
rubygems
、
shrine
config/initializers/
shrine
.rbrequire "
shrine
/
storage
/file_system" cache:
Shrine
::
Storage
::S3.new(prefix: ..., **s3_options),
浏览 8
提问于2020-08-25
得票数 2
回答已采纳
1
回答
Shrine
uploader未正确挂载
amazon-s3
、
ruby-on-rails-5
、
shrine
ArgumentError)Rails.application.routes.draw do resources :photos endrequire "
shrine
/
storage
/s3&quo
浏览 13
提问于2019-10-29
得票数 1
回答已采纳
1
回答
Rails
Shrine
图像上传到google驱动器时出错
ruby-on-rails
、
ruby
、
shrine
我将这个宝石添加到我的项目中gem '
shrine
-google_drive_
storage
'require "
shrine
"require "
shrine
/
storage
/google_drive_
storage
" cac
浏览 0
提问于2017-11-03
得票数 0
1
回答
rails如何获取镜像名称而不是
shrine
url的散列
ruby-on-rails
、
ruby-on-rails-5.2
、
shrine
目前,当我使用
shrine
存储任何图像时,我会收到url :-但我希望url的显示方式如下:-/uploads/
store
/original_image_name.png初始化器/shorine.rb require "
shrine
/
storage
/file_system
浏览 14
提问于2020-06-02
得票数 1
1
回答
Rails 6
shrine
image_tag已损坏,但在新选项卡中未打开
ruby-on-rails-6
、
shrine
/config/initializers/shorine.rb require "
shrine
" cache:
Shrine
::
Storage
::FileSystem.new("public", prefix: "uploads/cache
浏览 15
提问于2020-12-17
得票数 1
1
回答
我可以在模型中添加神社上传凭据吗?
ruby-on-rails
、
amazon-s3
、
ruby-on-rails-5
、
shrine
我有一个建立在rails 5
上
的多租户站点,每个租户都添加了自己的s3凭证,因此,发生在租户站点
上
的任何上传都会上传到他们自己的s3帐户。
浏览 2
提问于2020-01-03
得票数 0
回答已采纳
1
回答
Rails以form_for形式向新实例添加一个值
ruby-on-rails
、
shrine
我有一个form_for表单,它使用神圣宝石将图像上传到我的机器
上
。我正在html文件中创建新实例。我已经在
shrine
.rb文件和类
ImageUploader
中包含了插件。'
shrine
/
storage
/file_system'
Shrine
.storages = { cache:
Shrine
::
Storage
::FileSystem.new(&qu
浏览 4
提问于2017-12-13
得票数 0
1
回答
生成模糊PDF文件上传
ruby-on-rails
、
ruby-on-rails-5
、
shrine
initializers/
shrine
.rbrequire '
shrine
/
storage
/file_system' <
浏览 0
提问于2018-08-04
得票数 0
回答已采纳
1
回答
Rails 5 pdf预览与神殿宝石
jquery
、
ruby-on-rails
、
ruby-on-rails-5
、
shrine
初始化器require '
shrine
/
storage
/file_system' cache:
Shrine
::
Storage
::FileSystem.new('public', prefix: 'uploads/cache'),
store
:
Shrine</
浏览 2
提问于2017-12-04
得票数 0
回答已采纳
1
回答
调整不与神殿和ImageProcessor / MiniMagick一起工作的大小- Rails 5.2
ruby-on-rails
、
image-processing
、
minimagick
、
shrine
以下是我到目前为止所做的工作:require "image_processing/mini_magick" }end
Shrine
.plugin :derivatives2.6.1 :014 &
浏览 5
提问于2021-01-03
得票数 0
1
回答
无法更改Rails应用程序中的神殿亚马逊S3前缀
ruby-on-rails
、
ruby
、
amazon-web-services
、
amazon-s3
、
ruby-on-rails-5
当然,当我试图通过浏览器查看图像时,我得到了以下错误:<Code>NoSuchKey</Code>这是我在config/initializers/
shrine
.rb中的当前设置 s3_op
浏览 3
提问于2021-02-23
得票数 0
1
回答
获取“不允许的参数::照片”
ruby-on-rails
、
parameter-passing
、
ruby-on-rails-6
、
shrine
# both `cache` and `
store
` storages are needed cache:
Shrine
::
Storage
::S3.new(prefix: "cache", **s3_options), } when :apprequire "
shrine</em
浏览 1
提问于2020-02-10
得票数 1
1
回答
不允许使用Uppy槽神社返回405方法上传图像
javascript
、
ruby-on-rails
、
reactjs
、
amazon-s3
、
react-on-rails
) => console.log(
error
))}); 我的路线是 mount
Shrine
.presign_endpoint(:cache) => '/presign' 最后是我的
shrine
.rb= {
store
:
Shrine
::
Storage
浏览 76
提问于2019-01-24
得票数 0
回答已采纳
2
回答
使用圣地和aws上载到数字海洋空间时出错
ruby-on-rails
、
aws-sdk
、
digital-ocean
、
shrine
require "
shrine
" access_key_id: ENV["SPACES_ACCESS_KEY_ID= { cache:
Shrine
::
Storage
::S3.new(prefix: "cache", upload_options: {acl: "public-read"}, *
浏览 0
提问于2018-02-06
得票数 1
回答已采纳
1
回答
用神殿生成PDF预览
vips
、
shrine
现在让我给大家介绍一些情况:require "
shrine
"require "
shrine
/
storage
/google_cloud_
storage
" cache:
Shrine
::
Storage</e
浏览 1
提问于2019-04-25
得票数 1
1
回答
浏览器缓存圣地s3私有附件
ruby-on-rails
、
amazon-s3
、
aws-sdk
、
shrine
、
aws-sdk-ruby
我刚刚在s3
上
创建了一个私有存储桶,以包含用户配置文件图片。使用公共桶,所有图像都被正确地缓存(以前的回形针配置具有相同的设置)。= {
store
:
Shrine
::
Storage
Shrine
.plugin :cached_attachment_data
Shr
浏览 0
提问于2018-07-12
得票数 1
回答已采纳
1
回答
ActionView::Template::
Error
( #<ActionView::Helpers::FormBuilder:0x00007f921c2ac9b0>)的未定义方法`image_url
ruby-on-rails
、
ruby
、
image
、
cropperjs
、
shrine
%>"require "image_processing/vips" require "
shrine
/
storage
/file_system"
S
浏览 27
提问于2020-04-30
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
高可用高性能分布式文件系统FastDFS进阶keepalived+nginx对多tracker进行高可用热备
CynosDB技术详解——存储集群管理
分布式文件系统FastDFS如何做到高可用
使用 Flutter 快速实现聊天应用
基于Kafka技术栈构建和部署实时搜索引擎的实践
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券