JasonKing-good_sort 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. data/README.markdown +12 -2
  2. metadata +1 -1
data/README.markdown CHANGED
@@ -2,8 +2,11 @@ Good Sort
2
2
  =========
3
3
 
4
4
  Hate not having _the right way_™ to do column sorting in list (collection)
5
- views? Well, fear not my dear friend, for good_sort has arrived. Does Ajax for
6
- those with JS and regular links for those without.
5
+ views? Well, fear not my dear friend, for good_sort has arrived.
6
+
7
+ It does Ajax for those with JS and regular links for those without.
8
+
9
+ It _just works_™ with `will_paginate`?
7
10
 
8
11
  Installation
9
12
  ------------
@@ -144,3 +147,10 @@ follows:
144
147
  Finally, if you pass a block, then it will be yielded to for each field in your
145
148
  header\_array, and you can provide different text to be displayed for as many of
146
149
  the headings as you like.
150
+
151
+ As long as you require `good_sort` after you've required `will_paginate` then
152
+ `good_sort` will override the `will_paginate` view helper to inject the params
153
+ needed to ensure that the page links will all know about the sorting column.
154
+ The only caveat is that the call to `will_paginate` needs to be **within** the
155
+ partial that is rendered by the AJAX call so that it is re-rendered when you
156
+ sort.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: JasonKing-good_sort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason King