search for: findnearestaddress

Displaying 2 results from an estimated 2 matches for "findnearestaddress".

2006 Sep 01
2
Include ActiveResource
...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/acti...
2006 Sep 01
2
Uninitialized constant w/ ActiveResource
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 ./...