Hello,
I want to give ActiveResource a spin.
I have all the code checked out from SVN in vendor/rails (yes, including ActiveResource).
I'm trying to make sure it gets loaded.
I did this in environment.rb:
config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/activeresource/lib )
Unfortunately I still can't use it. I have an ActiveResource derived model, Address:
class Address < ActiveResource::Base self.site = "http://ws.geonames.org/findNearestAddress?lat=:lat&lng=:long" end
When I try to use it, I get the trace below.
Any ideas? Help very much appreciated.
Loading development environment.
my_address = Address.new
NameError: uninitialized constant ActiveResource from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:237:in `load_missing_constant' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:315:in `const_missing' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:322:in `const_missing' from ./script/../config/../config/../app/models/address.rb:1 from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:343:in `load' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:183:in `load_file' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:85:in `require_or_load' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:219:in `load_missing_constant' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:315:in `const_missing' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:322:in `const_missing' from (irb):1