Closed jorge8989 closed 8 years ago
Hello, i added the constantcontact gem to my rails app
gem 'constantcontact', '~> 2.2.0'
and followed the 'Getting started' guide, but i had this exception
undefined method `each' for #<ConstantContact::Components::ResultSet:0x000000052b84a0>
i fixed it replacing this:
<% if @contacts.present? %> <% @contacts.each do |contact| %> <p>Contact name: <%= "#{contact.first_name} #{contact.last_name}" %></p> <% end %> <% end %>
With this:
<% if @contacts.present? %> <% @contacts.results.each do |contact| %> <p>Contact name: <%= "#{contact.first_name} #{contact.last_name}" %></p> <% end %> <% end %>
This Pull Request add this correction to the 'Getting Started' guide, Thanks.
Thanks Jorge! Merged!
Hello, i added the constantcontact gem to my rails app
and followed the 'Getting started' guide, but i had this exception
i fixed it replacing this:
With this:
This Pull Request add this correction to the 'Getting Started' guide, Thanks.