jquery - How to respond with coffee script -
how can respond coffee flavoured js?
def new respond_with { |format| format.js } end # new.js.coffee.erb $('#blah_' + @blah.id).something -> etc...
this breaks, though: missing template
. need choose between coffee or erb
, want both.
if suffix template .js.coffee
you'll both erb , coffeescript capabilities.
this highly confusing because templates define pre-processors want templates run through adding extensions. see issue on github: https://github.com/rails/coffee-rails/issues/36
Comments
Post a Comment