public
Description: A rip-off of will_paginate to get pagination going on merb
Homepage: http://github.com/myobie/merb_paginate
Clone URL: git://github.com/vanpelt/merb_paginate.git
merb_paginate / README
100644 36 lines (24 sloc) 1.124 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
merb_paginate
=============
 
This is a blatant rip-off of will_paginate to try to bring pagination to merb.
http://errtheblog.com/posts/56-im-paginating-again
 
All credit goes to those dudes. It's a fantastic plugin, it just is too
rails centric to use with merb out of the box. A lot of things had to be
changed to not rely on the magicness of rails.
 
This merb plugin is very incomplete and has no specs (Hint: contribute!).
 
Install
=======
 
git clone git://github.com/myobie/merb_paginate.git
cd merb_paginate
sudo rake install
 
Usage
=====
 
Using this plugin is like so in init.rb:
 
  dependency 'merb_paginate'
  MerbPaginate.activate! :finder => :datamapper # require the custom finder for datamapper
  MerbPaginate.activate! :view_helpers # require the will_paginate view helper
 
I hope to have a paginate finder for each orm evenutally. (Hint: contribute!)
 
In the merb style (at least how I see it), it only requires the pagination array collection
class at first. You must activate the model paginate finder and the view helper (will_paginate)
method yourself (see above).
 
 
> End of the worlds worst README.