论坛首页 编程语言技术论坛

Rails 1.2 所有 gem 提供下載

浏览 17387 次
该帖已经被评为良好帖
作者 正文
   发表时间:2007-01-22  
为啥我用activeresource会报错呢...

D:/development/ruby/lib/ruby/gems/1.8/gems/activeresource-0.5.0/lib/active_resource/base.rb:32: undefined method `attr_accessor_with_default' for #<Class:ActiveResource::Base> (NoMethodError)
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in `require'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in `new_constants_in'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in `require'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activeresource-0.5.0/lib/active_resource.rb:37
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
... 8 levels...
from D:\development\RadRails\workspace\ar_test/forum.rb:1
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from D:/development/RadRails/workspace/ar_test/test.rb:1
0 请登录后投票
   发表时间:2007-01-22  
AllenYoung 写道
为啥我用activeresource会报错呢...

D:/development/ruby/lib/ruby/gems/1.8/gems/activeresource-0.5.0/lib/active_resource/base.rb:32: undefined method `attr_accessor_with_default' for #<Class:ActiveResource::Base> (NoMethodError)
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in `require'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in `new_constants_in'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in `require'
from D:/development/ruby/lib/ruby/gems/1.8/gems/activeresource-0.5.0/lib/active_resource.rb:37
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
... 8 levels...
from D:\development\RadRails\workspace\ar_test/forum.rb:1
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from D:/development/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from D:/development/RadRails/workspace/ar_test/test.rb:1


由于这个包是通过最新的SVN生成的,
请下载完整的包http://blog.sxia.net/temp/rails1.2.1.rar 重新安装
0 请登录后投票
   发表时间:2007-01-22  
幸好偶的网络还可以,省了点事!直接gem!
rails的版本要求太严格了..为啥就不能兼容上个版本的了?郁闷
0 请登录后投票
   发表时间:2007-01-23  
jiangcccc 写道
幸好偶的网络还可以,省了点事!直接gem!
rails的版本要求太严格了..为啥就不能兼容上个版本的了?郁闷


可以吧,将config/environment.rb中的“RAILS_GEM_VERSION”设置一下,注释掉也可以
RAILS_GEM_VERSION = '1.2.1' unless defined? RAILS_GEM_VERSION
0 请登录后投票
   发表时间:2007-01-23  
zbage 写道
由于这个包是通过最新的SVN生成的,
请下载完整的包http://blog.sxia.net/temp/rails1.2.1.rar 重新安装


我用的就是这个rar呀!
0 请登录后投票
   发表时间:2007-01-23  
AllenYoung 写道
zbage 写道
由于这个包是通过最新的SVN生成的,
请下载完整的包http://blog.sxia.net/temp/rails1.2.1.rar 重新安装


我用的就是这个rar呀!


除ActiveResource以外的几个GEM都要用这里的。
0 请登录后投票
   发表时间:2007-01-24  
我想知道,如果可以这样调用,那action webservice还有什么用呢?
0 请登录后投票
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics