請問乙個rails的問題,關於外掛程式的

2021-08-29 10:30:50 字數 1642 閱讀 1836

新手,對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 # (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

0from 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

rails中用extjs遇到乙個問題

今天看extjs自己的build系統,突然產生乙個想法 根據頁面需要,我們也許可以定製需要包含的extjs庫的內容。1.每個頁面在包含js時可以設定自己的元件,例如 rhtml ext get core utilities grid core core state management data c...

乙個關於 include的問題

2001年05月03日 12 04 00 乙個關於 include的問題 趙湘寧 問題 我試圖將乙個標頭檔案包含在工程的資源檔案中。為此在.rc檔案中新增了如下一行 include myfile.h 雖然執行沒有問題,但是每次在visual studio中開啟資源時,它都把這一行 刪除掉了。我之所以...

關於繼承的乙個問題

class a virtual a class b public a virtual b class c public b virtual c int fun int n char last4hex unsigned int num,char a 5 int main int argc,char a...