I want to add Gon ( https://github.com/gazay/gon ) to my activeadmin
but I need to add the line
<%= include_gon %>
to the head section in the layout
but I can’t figure out how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To add to Mexxer’s comment. Go to `config/initializers/active_admin.rb
At the bottom of the page, you’ll find the following:
Uncomment the last line and replace my_javascript.js with your file, like this…
That file can be located at
app/assets/javascripts/invoices.js