According to Twitter doesn’t officially support Tweet Button over SSL.
The main issue is that assets are served from subdomains that has “untrusted” SSL certificates, for example: https://platform1.twitter.com/. This is a big problem when you want people to share a site that’s served under https.
To implement it we can do this:
1= link_to "Tweet", "https://twitter.com/share", class: "twitter-share-button"
And then include this javascript file widget.js that prevents Twitter from loading assets from untrusted subdomains and just load them from platform.twitter.com.
And… That’s it! You have now SSL Tweet Button (with “count” support) on your secure site.
