Create a inititializer and include the helpers in the context of the assets like this:
Rails.application.assets.context_class.class_eval do
include ActionView::Helpers
include MyAppHelper
include Rails.application.routes.url_helpers
end
Taken from this sprockets issue