请问一个rails的问题,关于插件的

我需要安装will_paginate插件,但是svn在公司局域网连接不上,于是我需要把will_paginate下载到本地安装,但是不知道怎么按照。
新手,对rails的插件机理不是很懂。

尝试中,把will_paginate解压放到vendor/plugins/will_paginate下面
启动server的时候,报错。

=> Booting WEBrick...
./script/../config/../vendor/plugins/will_paginate/lib/will_paginate/finder.rb:1
1:in `included': undefined method `alias_method_chain' for #<Class:ActiveRecord:
:Base> (NoMethodError)
        from ./script/../config/../vendor/plugins/will_paginate/init.rb:7:in `in
clude'
        from ./script/../config/../vendor/plugins/will_paginate/init.rb:7:in `se
nd'
        from ./script/../config/../vendor/plugins/will_paginate/init.rb:7:in `lo
ad_plugin'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:i
n `load_plugin'
        from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo
rt/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:i
n `load_plugin'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:i
n `load_plugins'
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:i
n `each'
         ... 12 levels...
        from d:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:3
0
        from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
        from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
        from script/server:3


似乎是版本有问题,我的
rails 1.2.4
ruby 1.8.6
貌似都是最新的。

问题:
1.插件安装,如果不用svn,是不是可以把文件解压直接放在plugins中。
2.上面的启动错误是不是版本问题呢。。

谢谢拉
online waiting

你可能感兴趣的:(SVN,ext,Ruby,Rails,rubygems)