recordselect 3.10.9 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2db446fada0e6aebc41fe549d2779acc8d2ff8cd3103e9e86bd44e05b8441b4
4
- data.tar.gz: 576f85d27c9fc2594a4741bacf8c438cfb5bb3b0a93df2f7f56176939db8ef3d
3
+ metadata.gz: 65ad43872bf90ddfbc045b05d0504aba6146e244e381742c10c7d105959fd222
4
+ data.tar.gz: 1d10b16c74f2a695cf4c8f8cb07419440b19ccb47ba122c92eb29dea941fbda7
5
5
  SHA512:
6
- metadata.gz: e2d3767f1cba82f21c828e5f3d4c1e9e84250d727c0f80a7744aac42186532d31363a2b14f30681fd69f351c458dc38ce98ac14aeb9ab8f66c14945a447a0232
7
- data.tar.gz: b8659bfb3fde9835d93e69bd432d4416bfb9deee7460bada53d51d13f9886efa8041463c4e3c6e29adeaae342507bba7cbda006d21232bd5d436e1746ceb91ab
6
+ metadata.gz: 074faf7c0a581eeea7a2ccbc85b7caf185a3e900f13f60ab4ab2334e802b6ccb766d8083eb4a367989f92b453459dc78925d98bb6ce0c63e1ca48f57c914ac9a
7
+ data.tar.gz: ea4f0c7baf85455cd755ec83ec22abbf8855301335de39530b5ad310ca5bd2a710b325a863e91936ab06a9adedcdcae1df1c41cfc3f7ba908ce4c30d4f656a75
data/README CHANGED
@@ -3,10 +3,46 @@ RecordSelect
3
3
 
4
4
  (c) 2007 - 2016 Sergio Cambra, Lance Ivy
5
5
 
6
- RecordSelect is a Rails widget to help you pick one record out of many. I designed it as a more usable and performant alternative to generating a massive dropdown list. It relies on AJAX for the cooler uses (all the provided view helpers rely on JavaScript?) but can also function in a pure-http fashion (although multi-select support is provided in a pure-JavaScript implementation).
6
+ RecordSelect is a Rails widget to help you pick one record out of many. I designed it as a more usable and performant alternative to generating a massive dropdown list. It relies on AJAX, powered by jQuery, so jQuery must be loaded first, either from jquery-rails gem or just loading the JS in the assets pipeline, or imported before importing record_select if using importmap.
7
7
 
8
8
  Please see the ActionView::Helpers::RecordSelectHelpers for the most common API. More documentation (and HOWTOs) can be found online at the wiki.
9
9
 
10
+ = USAGE WITH ASSETS PIPELINE
11
+
12
+ Add to application.js
13
+
14
+ ```js
15
+ //= require jquery
16
+ //= require record_select
17
+ ```
18
+
19
+ = USAGE WITH IMPORTMAP
20
+
21
+ Add to importmap.rb
22
+
23
+ ```rb
24
+ pin "jquery"
25
+ pin "record_select"
26
+ ```
27
+
28
+ Add to app/assets/config/manifest.js
29
+
30
+ ```js
31
+ //= link jquery.js
32
+ //= link record_select.js
33
+ ```
34
+
35
+ Add to app/javascript/application.js
36
+
37
+ ```js
38
+ import 'jquery'
39
+ import 'record_select'
40
+ ```
41
+
42
+ = USAGE WITH ACTIVE_SCAFFOLD
43
+
44
+ Either using assets pipeline or importmap, it will be loaded when requiring or importing active_scaffold, so no need to add it to application.js, importmap.rb or manifest.js
45
+
10
46
  = DEPENDENCIES
11
47
  This depends on the excellent Paginator gem by Bruce Williams. This simple gem is available at paginator.rubyforge.org.
12
48