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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -