cardmagic/contacts — Issue #40: display authentication, connection error messages of contacts gem as errors in application.
Author: coolsid78
Created: 2011-11-07 08:06:40+00:00
State: open

I am successfully able to import contacts using contacts gem in rails 3.1. However, I am not able to display contacts authentication or connection error messages in my application. It gives the following error message in new page:-

Contacts::AuthenticationError in SocialContactsController#import_contacts

Username and password do not match

I am using

@contacts = @sites[params[:from]].new(params[:login], params[:password]).contacts

for authenticating username and password