upgrade rails 2.0 pagination incompatible

cd your [rails app dir]
if your system is win
ruby script\plugin install svn://errtheblog.com/svn/plugins/classic_pagination

i have problem with classic_pagination

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependenci
es.rb:266:in `load_missing_constant': uninitialized constant ActionView::Helpers
::PaginationHelper (NameError)

then i debug the program
and find the solution
the solution is
cd [rails app dir]\vendor\plugins\classic_pagination\lib
md action_view
cd action_view
md helpers
mv ..\pagination_helper.rb helpers

if linux
script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination

and i didn't test if that bugs on linux

and the classic_pagination README recommend 'will_paginate'



你可能感兴趣的:(c,linux,SVN,Ruby,Rails)