Multi file upload with rails_admin (Carrierwave, P

2019-06-07 21:31发布

问题:

I'm looking for a quick solution for multi file upload with rails_admin.

Any ideas or solutions out there?

回答1:

The approach I'd take here is to develop a custom action which would include it's own view and controller processing.

You can generate a rails_admin plugin with the directions at the top of the page here.

And here are some examples of custom actions I've built out:

  • Import
  • Print to PDF

The import plugin has a supporting blog article here. This is the file you want to look at where you add your upload behavior inside the :controller instance option.