Forum: Ruby on Rails Active Resource without Formatters

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joe O. (Guest)
on 2009-01-31 13:50
(Received via mailing list)
I have installed the ExtensionlessFormat plugin but I am still not able
to
get the information I need from the resource.

The resource has a RESTful API that looks like this:

GET     {host} /processdefinitions      A list of process definitions
are
returned

As you can see they are expecting me not to supply the format in the URI
hence why I installed ExtensionlessFormat plugin.

When I instantiate the resource and perform a .find(:all) method I get
the
following error:

>> pd = ProcessDefinitions.find(:all)
NoMethodError: undefined method `collect!' for #<Hash:0x24315b4>
        from
/usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:597:in
`instantiate_collection'
        from
/usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:574:in
`find_every'
        from
/usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:517:in
`find'
        from (irb):2


If anyone has any advice concerning this matter, thanks for the help in
advance.

--
Thank you,

Joe O.
agilejoe.lostechies.com
This topic is locked and can not be replied to.