We've moved discussions to Discord

Administrate's Field::HasMany is not loading js

Roberto Plancarte
When a dashboard uses Field::HasMany as an attribute it should display a select box with Selectize.js. I'm not sure why Jumpstart isn't loading the gems js libraries through the asset pipeline. Administrate's other components like date_time_piker (reworked by jumpstart to use flatpicker) and table (used so that rows are links to a resource's show page) are ported to jupstart, but HasMany is not. 

Is there a plan to port Field::HasMany?

I guess all gems that have js loaded through the asset pipeline wont work out of the box.
Chris Oliver
Since Rails 6 doesn't use the asset pipeline, we have migrated the Administrate Javascript over to Webpacker. Their instructions for this might just be missing a piece for selectize.

Let me take a look real quick!
Chris Oliver
Oh yeah, lol. Forgot this was in their docs:

There is currently no recommended replacement for selectize.js
Chris Oliver
Just pushed an update that includes slim-select as the library for Administrate select boxes. 👍
Roberto Plancarte
awesome, thanks! :)
Notifications
You’re not receiving notifications from this thread.