rankable 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +16 -16
- metadata +5 -5
data/README.markdown
CHANGED
@@ -47,23 +47,23 @@ In your controllers:
|
|
47
47
|
|
48
48
|
In your views:
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
50
|
+
<script>
|
51
|
+
$(function() {
|
52
|
+
$( "#sortable" ).sortable({
|
53
|
+
stop: function() {
|
54
|
+
$.post('<%= sort_articles_path %>', '_method=put&' + $(this).sortable('serialize'));
|
55
|
+
}
|
56
|
+
});
|
56
57
|
});
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</ul>
|
58
|
+
</script>
|
59
|
+
|
60
|
+
<ul id="sortable">
|
61
|
+
<li id="article_ids_1">Article 1</li>
|
62
|
+
<li id="article_ids_2">Article 2</li>
|
63
|
+
<li id="article_ids_3">Article 3</li>
|
64
|
+
<li id="article_ids_4">Article 4</li>
|
65
|
+
<li id="article_ids_5">Article 5</li>
|
66
|
+
</ul>
|
67
67
|
|
68
68
|
|
69
69
|
## License
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rankable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dimitrij Denissenko
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-31 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activerecord
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
hash: 7
|
29
29
|
segments:
|