Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError (undefined method `collect!' for #<Net::HTTPOK 200 OK readbody=true>): #13

Open
salmanaslam25 opened this issue Sep 3, 2012 · 3 comments

Comments

@salmanaslam25
Copy link

I am trying to fetched complete list in rails 3.0 and getting below error

NoMethodError (undefined method `collect!' for #<Net::HTTPOK 200 OK readbody=true>):

Below is code

ConstantContact::List.find (:all)

Kindly help me in this regards

@jipiboily
Copy link

It is just probably not Rails 3.1.0+ compatible due to inheriting AR::Base:

https://github.com/websdotcom/constant_contact/blob/master/lib/constant_contact/base.rb

You had a fix for that?

@ghost
Copy link

ghost commented Jan 15, 2013

I think I have a fix.

Make sure on constant_contact.gemspec you have:
s.add_dependency("activeresource", ">= 3.0")
s.add_dependency("builder", "> 2.1.2")

My fork has it fixed: https://github.com/guillelopez/constant_contact

@duongdn
Copy link

duongdn commented Jun 17, 2013

I created an activity to bulk import but return bad request. Can you help me with this problem: Here is my code:
@contacts = []
3.times do |n| @contacts << ConstantContact::Contact.new(:first_name => "Fred#{n}",:last_name => "Test#{n}",:email_address => "email#{n}@gmail.com") end
@activity = ConstantContact::Activity.new(:activity_type => "SV_ADD")
@activity.contacts = @contacts
@activity.lists = [real_list]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants