I need to display images on an HTML5 canvas that are in the Rails asset pipeline, but I need to know the path for the asset from JavaScript. I\'m using js-routes for other parts
I came across the same issue in Rails 4.1 and used referencing rails assets in coffeescript for images. No additional libraries needed.