Can I use CoffeeScript in the views executed on render.js?

后端 未结 4 1452
长发绾君心
长发绾君心 2021-02-07 20:18

What do I need to do so that I can use CoffeeScript in the Rails JS views? For example:

def index
    format.js { render :layout => false } 
end
4条回答
  •  无人共我
    2021-02-07 21:08

    It's not yet supported in 3.1. You will need to use Coffeebeans.


    Update: It is now supported in rails 3.2

提交回复
热议问题