Reputation: 4737
My controller is in app/controllers/admin/customer_service/tickets_controller.rb
I've written a tickets.js.coffee script for use in the show view...
Just wondering where do I put it, to be automatically included?
app/assets/javascript/admin/customer_services/tickets.js.coffee ?
Everything I've tried isn't working...
Upvotes: 0
Views: 487
Reputation: 12235
In your application.js
file, there are directives about which files are to be included. Make sure your file is included, and that should do it. (Taking for granted that you didn't changed the asset pipelines default config).
See http://guides.rubyonrails.org/asset_pipeline.html for more.
Upvotes: 1