This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ISSUE: | |
Ran into this errors when adding Aumniauth with provider strategies such as Google to my rails app on Mac OS X development box. Clicking on 'Sign in with ...' (E.g. Sign in with Google), resulted in an error page: | |
Faraday::Error::ConnectionFailed | |
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed | |
Faraday::Error::ConnectionFailed SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed | |
DIAGNOSIS: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This particular code works with html that looks like this: | |
<div class="upload_container" id="photo_number_1"> | |
<div><input name="upload" class="photo_upload_field" type="file" /></div> | |
<div><input type="button" class="upload_photo_submit" value="Upload Photo"></div> | |
<p class="center loading hidden"><img src="/assets/loading.gif"></p> | |
<script> | |
// yes, I know, don't actually put this in a script tag here. It's for illustration purposes only | |
$('.upload_photo_submit')[0]).click(function(event){ajaxFileUpload(event);}); | |
</script> |