Pardon my newbieness (both to Restfulie and Rails).
I'm getting a stack level too deep error when trying to unmarshal the response from Restfulie. It looks like it's a problem in methodize, but I've come up short with my research. Has anyone seen this before? I'd appreciate any tips at all. Thanks!
I'm on Mac OS X Lion with Rails 3.1.0 and ruby 1.8.7 (2010-01-10 patchlevel 249).
ready to execute request using stack typeRestfulie::Client::Feature::BaseRequestargstypeRestfulie::Client::Feature::RescueExceptionargstypeRestfulie::Client::Feature::SetupHeaderargstypeRestfulie::Client::Feature::SerializeBodyargstypeRestfulie::Client::Feature::EnhanceResponseargstypeRestfulie::Client::Feature::FollowRequestargs
invoking filter Restfulie::Client::Feature::FollowRequest with #<Restfulie::Client::Dsl:0x105e59150> at
invoking filter Restfulie::Client::Feature::EnhanceResponse with #<Restfulie::Client::Dsl:0x105e59150> at
invoking filter Restfulie::Client::Feature::SerializeBody with #<Restfulie::Client::Dsl:0x105e59150> at
invoking filter Restfulie::Client::Feature::SetupHeader with #<Restfulie::Client::Dsl:0x105e59150> at
invoking filter Restfulie::Client::Feature::RescueException with #<Restfulie::Client::Dsl:0x105e59150> at
invoking filter Restfulie::Client::Feature::BaseRequest with #<Restfulie::Client::Dsl:0x105e59150> at
GET /items
=> #<Net::HTTPOK 200 OK readbody=true>
>> puts h.body
[{"price":"12.99","name":"Blade Runner","created_at":"2011-09-18T20:36:36Z","category":"Movie","updated_at":"2011-09-18T20:36:36Z","id":1},{"price":"8.49","name":"The Long Goodbye","created_at":"2011-09-18T20:37:43Z","category":"Book","updated_at":"2011-09-18T20:37:43Z","id":2},{"price":"5.99","name":"One Fish Two Fish Red Fish Blue Fish","created_at":"2011-09-18T21:10:07Z","category":"Book","updated_at":"2011-09-18T21:10:07Z","id":3},{"price":"199.99","name":"iPhone 4","created_at":"2011-09-18T21:23:58Z","category":"Electronics","updated_at":"2011-09-18T21:23:58Z","id":4}]
=> nil
>> puts h.code
200
=> nil
>> items = h.resource
SystemStackError: stack level too deep
from /Library/Ruby/Gems/1.8/gems/methodize-0.2.0/lib/methodize.rb:30:in `method_missing'
from /Library/Ruby/Gems/1.8/gems/methodize-0.2.0/lib/methodize.rb:30:in `method_missing'
from /Library/Ruby/Gems/1.8/gems/methodize-0.2.0/lib/methodize.rb:9:in `extended'
from /Library/Ruby/Gems/1.8/gems/medie-1.0.0/lib/medie/json/driver.rb:19:in `extend'
from /Library/Ruby/Gems/1.8/gems/medie-1.0.0/lib/medie/json/driver.rb:19:in `unmarshal'
from /Library/Ruby/Gems/1.8/gems/restfulie-1.0.3/lib/restfulie/client/http/response_holder.rb:8:in `resource'
from (irb):4