How to include Rails view helpers to be accesible by assets pipeline execution context?
An example use case would be to generate the markup for a form, using form_tag
helper method, and make it available to a Javascript template (like handlebars, jst, etc.).
I use handlebar_assets gem, but this should apply to any erb
or haml
template too.