Hi,
I’m trying to use ActiveResource with my Rails 1.2.3. I installed ARes
0.9.0 with the current command:
sudo gem install --version 0.9.0 activeresource --source
http://gems.rubyonrails.org
I inserted “require” in my environment.rb like this:
require ‘rubygems’
require ‘active_resource’
and without creating a ARes model, just lauching the server (mongrel),
it fails with this error:
/opt/local/lib/ruby/gems/1.8/gems/activeresource-0.9.0/lib/active_resource/base.rb:34:
undefined method attr_accessor_with_default' for #<Class:ActiveResource::Base> (NoMethodError) from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require’
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
require’
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
require’
from
/opt/local/lib/ruby/gems/1.8/gems/activeresource-0.9.0/lib/active_resource.rb:37
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
require’
… 30 levels…
from
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require’
from ./script/server:3
Does anyone has experienced this type of problem ?
Regards,
–
Benoit
http://donegarden.com/