Ruby on rails 5 如何使用活动存储将图像上载字段添加到活动\u管理员

Ruby on rails 5 如何使用活动存储将图像上载字段添加到活动\u管理员,ruby-on-rails-5,activeadmin,rails-activestorage,Ruby On Rails 5,Activeadmin,Rails Activestorage,我有一个事件模型,它包含尽可能多的图像字段 class Event < ApplicationRecord has_one_attached :poster has_one_attached :ticket_image has_many_attached :images end 类事件

我有一个事件模型,它包含尽可能多的图像字段

class Event < ApplicationRecord
  has_one_attached :poster
  has_one_attached :ticket_image
  has_many_attached :images
end
类事件
如何使用上述字段在活动管理事件仪表板上创建和允许映像?
我正在使用active_存储作为我的图像上载程序

尝试以下方法:

ActiveAdmin.register事件do
...
表格do | f|
输入:海报,如::文件
输入:票证图像,as::文件
输入:图像,as::文件,输入_html:{multiple:true}
结束
许可证参数:海报、票证、图片:[]
结束

如果您能添加解释,您的答案将是一个更好的答案。