For me worked following:
I found the following worked well in my case. I added the following to config/initializers/assets.rb:
Now in my view I add:
My view is an html.erb partial, but the same should work for a page that is defined in the my_page.rb file.
My active_admin.js just requires the active_admin base, because I dont want the active_admin asset to include all my per-page scripts:
//= require active_admin/base
The advantage of this mechanism is that I dont need to remember to add to the precompile list when I add a new per-page script – its done automatically. ActiveAdmin wont add my page_assets scripts to the active_admin.js main asset (because I havent got require_tree . in active_admin.js)