Ruby on Rails Thursday, November 28, 2013

Hi friend,

how to import hotmail contacts in our application.

i used omnicontacts gem. my code is

controller
def contact_list
       @contacts = request.env['omnicontacts.contacts']
end


view
<%@contacts.each do |con| %>

<%= con[:email] %>
<%= con[:name] %>

<%end%>

name return correctly but email return empty.

Thanks for advance.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADKeJyT-6usednqOfqPe9COtqpC%3Dri2gvGi%3DnAS8ACYn%2BRux%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment