Is there any way to use a Rails helper method, more specifically, a path helper method within a javascript asset file. This file foo.js.coffee.erb
Actually, not sure if this helps but there is a way to define your own helpers for use during rake precompile
Create a new initializer and put this in it:
module Sprockets
module Helpers
module RailsHelper
def my_helper_method
...
end
end
end
end
And then you can:
<%= my_helper_method %>
in your .erb assets