My application uses 'rails_admin' and I would like every page within '/admin' to have a custom javascript file.
rails version: 6
EDIT:
My example I want to remove all these comments on each model, when I go to 'add new'.
All of these are <span class = 'help-block'>...</span>
so I thought about using document.getElementsByClassName("help-block").style.visibility = "hidden"; it to solve my problem.
But it did not work.