recordselect 3.10.8 → 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: d853eef1873cb3adfe62a30a2e14a1d72813686e5285d0a8d77df4e166f89259
4
- data.tar.gz: d2163171b919c4c958c46d11e735a6879da700650a30aac2d8998556cbad95f2
3
+ metadata.gz: f0ef7c94da94faaf00ae9051a1df4df8f2eaffb81b688227077980a08b3779e9
4
+ data.tar.gz: f41bab439890701d105855510b961364e13cb6b6e1682273aaa8db84c73d408a
5
5
  SHA512:
6
- metadata.gz: 0cf6d53d11096cf5c6c7fd9ea221aef54b8a26380db5e1d6e54066556e895d1fc30a2a6085abc6a682e74f830e23cadb555b817ed1a89ededcf106d5a38be4a6
7
- data.tar.gz: 1a087a70b682d38530e0be2c3b05f15496a9b1d4f2d775840b19659359179c9674ac95d5d113277f9375fc8f3ef1b1ca6c3e98ceacfefe9ec396885a4940832f
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