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
For those using HAML you can do:
:javascript var assetPath = "#{asset_path('some_image.jpg')}";