I am trying to add the ShareThis Hovering buttons to my Rails 3
application but have no luck. I got the embed code from
http://sharethis.com/publishers/get-hovering-buttons. In order to
prove that the problem is specific to Rails, I put the same code into
a HTML file outside the rails app and also a pure HTML file inside the
public directory (without routed to controller) of my rails app. It
turns out that the HTML file outside the rails app works but the one
inside the public directory threw an error "Uncaught TypeError: Cannot
read property 'length' of undefined" at load.js:1 (obtained by google
chrome error console).
Any help will be appreciated!