async_data_fetch 0.0.7 → 0.0.8
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/README.rdoc +14 -10
- data/lib/async_data_fetch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 352251ca6d73a240dd4ae8c1fc65e86202506324
|
|
4
|
+
data.tar.gz: e23a3fbdc6d3f0e3af154e0e04ca339d14f4020a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b793a6c2d523538eb807b09b3439586960fa77e4c851614763fe0166a1fb83370ef4ecfc405911d15ea986c7cc81b675c0b2d1db133ba6275502fc58e1fe36d2
|
|
7
|
+
data.tar.gz: e20ffc6a2b1d0aad3c5473e9ec6ba69922d07766a8ec8ce207ae5b4b7b7c195053a4396fbd6383dd61f4458f9b9e46d4bfec0339736cdceb14a5d1ce5708204a
|
data/README.rdoc
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
= AsyncDataFetch
|
|
2
2
|
|
|
3
|
-
This project
|
|
3
|
+
This project uses MIT-LICENSE.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
== To use:
|
|
8
8
|
|
|
9
|
-
model_name
|
|
10
|
-
model_id is the id of the row
|
|
11
|
-
model_method is the method you want to call
|
|
12
|
-
tag is the wrapper tag, if absent, will be 'span'
|
|
13
|
-
display_error is for debug, you'll see more information into the html and into the javascript console.
|
|
9
|
+
fetch_async(model_name: "MODEL_NAME", model_id: N , model_method: "METHOD_NAME", tag: "TAG", display_error: [true/false])
|
|
14
10
|
|
|
11
|
+
- *model_name* is the name of your model you want to fetch data from
|
|
12
|
+
- *model_id* is the id of the row
|
|
13
|
+
- *model_method* is the method you want to call
|
|
14
|
+
- *tag* is the wrapper tag, if absent, will be 'span'
|
|
15
|
+
- *display_error* is for debug, you'll see more information into the html and into the javascript console. Default: false
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
== TODO:
|
|
20
|
+
- make the controller test work. I am having issues with routing if someone want to help me.
|
|
21
|
+
- make the readme looks better. Sorry for now. If you can help, let me know !
|