I am using activeadmin gem in my Rails4 app and just wondering how i can add custom attributes on my body
tag or custom meta tag in my markup.There are few approaches :-
- Override the
layout
and easily definehelper
/function to get the meta tag/body custom attributes. - Keep the default settings, just include custom js file in
initializers/active_admin.js
and let the js make an ajax call and make changes in the body tag and add some attributes. - Is there any other way..an easy one?
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire