Howdy,
I had an application perfect for ActiveResource, which I do realize is
not
finished.
Anyway, I froze my app to edge and then defined a class:
class Address < ActiveResource::Base
self.site =
“http://ws.geonames.org/findNearestAddress?lat=:lat&lng=:long”
End
I tried to use it from the console but I get the trace below.
It appears it can’t ‘see’ ActiveResource.
What am I doing wrong?
Thanks,
Hunter
@location.address
NameError: uninitialized constant ActiveResource
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/…/…/activesu
pport/lib/active_support/dependencies.rb:237:inload_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:inconst_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:inload_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:inload_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:inconst_missing' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesu pport/lib/active_support/dependencies.rb:328:in
const_missing’
from ./script/…/config/…/config/…/app/models/location.rb:8:in
`address’
from (irb):2