My controller is as follows:
class CommentLoaderController < ApplicationController
respond_to :js
def show
puts 'here'
@client_id = params[:id]
respond_with @client_id
end
end
It loads a .js file which has some .erb markup in it. I'd like to load a CoffeeScript file, compiled to JS on the fly. Is this possible with Rails 3?