如何为咖啡脚本视图指定变体?



当使用Rails变体时,我会使用此约定来指定要使用的JS模板:

action.js+variant.erb

如何对 Coffeescript 视图执行相同的操作?

action.coffee

原来是action.js+variant.coffee.

最新更新