batch_action :email, form: {message: :textarea} do |ids, inputs|
batch_action_collection.find(ids).each do |user|
UserMailer.admin_email(inputs[:message], user.email).deliver_now
end
end
我希望管理员能够编辑电子邮件,因此我在短信textarea中实现了CKeditor。但是,我在textarea中显示编辑器时遇到了问题。我尝试过{message: :textarea, as: :ckeditor}
,但它不起作用。有什么想法吗?
但是,它的形式可以很好地用于例如f.input :description, as: :ckeditor