2011-08-09 165 views
2

我試圖在我的web應用程序中導入所有AOL電子郵件聯繫人。對於我使用的從AOL導入聯繫人時出錯

給出cardmagic gem我分叉的代碼&替換下面的代碼

AOL_NUM = "29970-343" # this seems to change each time they change the protocol 

CONTACT_LIST_URL = "http://webmail.aol.com/#{AOL_NUM}/aim-2/en-us/Lite/ContactList.aspx?folder=Inbox&showUserFolders=False" 

CONTACT_LIST_CSV_URL = "http://webmail.aol.com/#{AOL_NUM}/aim-2/en-us/Lite/ABExport.aspx?command=all" 

AOL_NUM = "32992-111" # this seems to change each time they change the protocol 

CONTACT_LIST_URL = "http://mail.aol.com/#{AOL_NUM}/aol-6/en-us/Lite/ContactList.aspx?folder=Inbox&showUserFolders=False" 

CONTACT_LIST_CSV_URL = "http://mail.aol.com/#{AOL_NUM}/aol-6/en-us/Lite/ABExport.aspx?command=all" 

我仍收到錯誤

CSV::IllegalFormatError: CSV::IllegalFormatError 

這是由於過時AOl_NUM?或者aol.rb有沒有更多的變化? 謝謝。

回答

1

我相信它應該工作。包括寶石之後你執行了更新包嗎?執行bundle update並重新啓動服務器。

+0

ya感謝您的快速回復。有效。謝謝 –