Using edge rails (revision 7150), I have a simple ActiveResource class:
class Person < ActiveResource::Base
self.site = 'http://localhost:3000/'
end
which is served by a restful app such that a get on /people.xml returns proper XML (outer element is named <people>, each row is in a nested element named <person>).
I can call things like
Person.find(1)
and retrieve an individual element correctly. However, calling
Person.find(:all)
throws an error:
NoMethodError: undefined method `collect!' for #<Hash:0xb72fe790>
from /home/craigmcc/Perpetua/trunk/rails/infrastructure_client/vendor/rails/activeresource/lib/active_resource/base.rb:443:in `instantiate_collection'
from /home/craigmcc/Perpetua/trunk/rails/infrastructure_client/vendor/rails/activeresource/lib/active_resource/base.rb:420:in `find_every'
from /home/craigmcc/Perpetua/trunk/rails/infrastructure_client/vendor/rails/activeresource/lib/active_resource/base.rb:363:in `find'
from (irb):22