recordselect 3.10.9 → 4.0.0

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: f0ef7c94da94faaf00ae9051a1df4df8f2eaffb81b688227077980a08b3779e9
4
+ data.tar.gz: f41bab439890701d105855510b961364e13cb6b6e1682273aaa8db84c73d408a
5
5
  SHA512:
6
- metadata.gz: e2d3767f1cba82f21c828e5f3d4c1e9e84250d727c0f80a7744aac42186532d31363a2b14f30681fd69f351c458dc38ce98ac14aeb9ab8f66c14945a447a0232
7
- data.tar.gz: b8659bfb3fde9835d93e69bd432d4416bfb9deee7460bada53d51d13f9886efa8041463c4e3c6e29adeaae342507bba7cbda006d21232bd5d436e1746ceb91ab
6
+ metadata.gz: d8cd9703b6f7a2d4e7eb36299a65d002ee87b273afeda9490c673a049d0e041ac63f73bdbfbc8235556ad33e380ae6b6be5f7769e19ec7cb798c42c7d7636b3b
7
+ data.tar.gz: 4f444e548ac1d7052c9e0f1e320bb92f3c207aba91ec92e76399faa3211dc156a449a9883b963c3c4745a191891c1e5b629b4fe9b02455d81e99e8bbdf99e3da
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