rails-datatable 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -3
- data/lib/generators/rails/datatable/install_generator.rb +1 -1
- data/lib/rails/datatable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e79e8c3d89ddfa0294088089a1eddedbab6b4ca76ada17c4595ab737ef38be9d
|
|
4
|
+
data.tar.gz: d8b4f5447ecf4ee63acd2a5ace4c6dec2804ee04262f59e64e497276cfb21789
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 258df0c4879102ee3402e32ec53386071ace32bb2f0e4e41ac01bb74ead88c10d5a6665fcffb03d19fc034c3e11ed0544d71f4322ca4fb6d7e5c0876a70d11e5
|
|
7
|
+
data.tar.gz: 56d0099ed368a4aa90f1fc777e0f0ce844ddffb79a0c8a5ae9b8e42114e2d7867dbc6ab2f230f3620daea7cce2565f80700a483917d50d8f50c3bc71a72e40af
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -11,11 +11,13 @@ gem 'rails-datatable'
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
And then execute:
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
$ bundle
|
|
15
16
|
|
|
16
17
|
Or install it yourself as:
|
|
17
|
-
$ gem install rails-datatable
|
|
18
18
|
|
|
19
|
+
$ gem install rails-datatable
|
|
20
|
+
|
|
19
21
|
## Usage
|
|
20
22
|
|
|
21
23
|
### 1. Install RailsDatatable
|
|
@@ -38,7 +40,7 @@ end
|
|
|
38
40
|
|
|
39
41
|
#### 2.3 Set json path for your table in view
|
|
40
42
|
```html
|
|
41
|
-
%table.
|
|
43
|
+
%table.datatable{data: { url: users_path(format: :json) }}
|
|
42
44
|
%thead
|
|
43
45
|
%tr
|
|
44
46
|
%th #
|
|
@@ -13,7 +13,7 @@ module Rails
|
|
|
13
13
|
def insert_jquery_datatable_js
|
|
14
14
|
insert_into_file(
|
|
15
15
|
'app/assets/javascripts/application.js',
|
|
16
|
-
"\n//= require jquery\n//= require jquery.dataTables.min"
|
|
16
|
+
"\n//= require jquery\n//= require jquery.dataTables.min\n//= require datatable"
|
|
17
17
|
)
|
|
18
18
|
end
|
|
19
19
|
end
|