Transponder.services_manifest = -> # fill in your manifest here # example: # if you want to trigger a service on your entire app # $('body').trigger 'app_name:services:service_name' # # If you want a more fine grained control for # different pages you can add a class to your body # in your views/layouts/application.html.erb # on your body tag you can do something like this # # # # You now have a more fine grained control in # your manifest file # $('body.posts.show').trigger 'app_name:services:service_name' # # if you need to trigger the same services on multiple pages # $('body.posts.show, # body.dashboard.show, # body.photos.index').trigger 'app_name:services:service_name' # run_ready = -> Transponder.services_manifest() $(document).ready run_ready $(document).on 'page:load', run_ready