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
$('#bar').val("<%= create_post_path %>")
I would love it if I could get from erubis
$('#bar').val("path/to/create")