README in pagify-0.7.0 vs README in pagify-0.7.1

- old
+ new

@@ -1,6 +1,6 @@ -= pagify 0.6.2 += pagify 0.7.1 by Lin Jen-Shin (aka godfat-真常[http://godfat.org]) godfat (XD) godfat.org == LINKS: @@ -8,20 +8,22 @@ * rubyforge-project[http://rubyforge.org/projects/ludy] == DESCRIPTION: Pagination tools for Array(or custom class), DataMapper and ActiveRecord + Helpers for Innate/Ramaze and Rails included. == FEATURES: * Aims to be as flexible as possible * Separate intrusive "pagify" method and Array/DataMapper/ActiveRecord Pager. * Separate view helpers. There's only html helper right now. +* Web framework specific helper included. Currently for Innate/Ramaze and Rails. == SYNOPSIS: - # for fast will_paginate replacement: + # for fast Rails will_paginate replacement: require 'pagify/active_record' require 'pagify/helper/rails' # in controller: @photos = Photo.pagify(:page => params[:page]) @@ -29,10 +31,24 @@ # in view: pagify_links(@photos) + # for Innate/Ramaze: + require 'pagify' + require 'pagify/helper/innate' + + # in controller, say you want pagify helper: + class Controller < Ramaze::Controller + helper :pagify + end + + # for the data part, see DataMapperPager or ActiveRecordPager + # in view, same as in Rails + + + # basic DataMapper usage: require 'pagify/data_mapper' class User include DataMapper::Resource @@ -107,11 +123,12 @@ == REQUIREMENTS: * ruby 1.8+ or 1.9.1+ * for Basic/ArrayPager: only ruby is needed -* for DataMapperPager: dm-core and dm-aggregates 0.9.9+ -* for ActiveRecordPager: activerecord 2.1.1+ +* for DataMapperPager: dm-core and dm-aggregates 0.10.1+ +* for ActiveRecordPager: activerecord 2.3.4+ +* for Innate helper: innate 2009.07+ == INSTALL: * gem install pagify