How to get filepicker and turbolinks to play well together?
问题 I develop a web app with rails 3.2, turbolinks and Filepicker.io I loade the API key like this (coffeescript). I think $(document).ready is enough, as the filepicker script get loaded once on the first request. $(document).ready -> filepicker.setKey "MY_KEY" I load Filepicker with the following (coffeescript). I should note that I use the jquery-turbolinks gem, which builds the support for turbolinks right into jquery. jQuery -> $("#publications_bulk-new #upload-button").on "click", -> form =