2
でビューを経由して、次のように私のコントローラは、次のとおりです。ロード.coffeeファイルのRails
class CommentLoaderController < ApplicationController
respond_to :js
def show
puts 'here'
@client_id = params[:id]
respond_with @client_id
end
end
それはそれでいくつかの.erbマークアップを持っている.jsファイルをロードします。 CoffeeScriptファイルを読み込んでJSにコンパイルしておきたい。これはRails 3で可能ですか?