File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,29 @@ Please :star: if you like it.
1515
1616## Install
1717
18- - Add to your Gemfile: ` gem 'activeadmin_dynamic_fields' `
19- - Execute bundle
20- - Add at the end of your ActiveAdmin javascripts (_ app/assets/javascripts/active_admin.js_ ):
18+ First, add the gem to your ActiveAdmin project: ` gem 'activeadmin_dynamic_fields' ` (and execute ` bundle ` )
19+
20+ If you installed Active Admin ** without Webpacker** support:
21+ - add at the end of your ActiveAdmin javascripts (_ app/assets/javascripts/active_admin.js_ ):
2122
2223``` js
2324// = require activeadmin/dynamic_fields
2425```
2526
27+ Otherwise ** with Webpacker** :
28+
29+ - Execute in your project root:
30+
31+ ``` sh
32+ yarn add blocknotes/activeadmin_dynamic_fields
33+ ```
34+
35+ - Add to your * app/javascript/packs/active_admin.js* :
36+
37+ ``` js
38+ require (' activeadmin_dynamic_fields' )
39+ ```
40+
2641## Options
2742
2843Options are passed to fields using * input_html* parameter as * data* attributes.
You can’t perform that action at this time.
0 commit comments