i have a question about popovers.... would anyone be so kind as to lend an ear
or eye
i am working on a fairly large project and i am using bootstrap-tour and up until now had no troubles with it, until i also started using active_admin
shekibobo has quit
and then the tour was broken and was giving me this error:Uncaught Error: no such method 'show' for popover widget instance
and then after a minute of googling figured out that there is a build in popover something or other in active_admin, that is fighting with the bootstrap tour
shekibobo joined the channel
shekibobo has quit
is there anyway to cancel one of them out to be able to use both features within my app?
kai3x5_ has quit
seanlinsley
tallgirltaadaa: I assume you have `require_tree .` in your asset manifests?
that is, application.css and application.js
tallgirltaadaa
yes
seanlinsley
that’s the problem — it’s including all of Active Admin’s JS and CSS into your main website
tallgirltaadaa
so what should i do
seanlinsley
remove the `require_tree .` line, instead manually loading each file you need
tallgirltaadaa
but wont this effect every other thing i need from the tree
seanlinsley
what sort of file structure do you have?
if you e.g. have a specific folder of files you want to include, you can do `require_tree your_folder`
tallgirltaadaa
i dont understand your meaning, but if you have screen hero.. i wouldnt mind you taking a look if it would help you understand a bit better
seanlinsley
I’ll rephrase
are there any files (e.g. in app/assets/stylesheets) that are automatically being included into the manifest by `require_tree .`? If there are none, you can remove it without consequence.
Alternatively, if you want to keep the `require_tree .` then move active_admin.css.scss to vendor/assets/stylesheets and active_admin.js.coffee to vendor/assets/javascripts
tallgirltaadaa
i am requiring, (jquery, jquery_ijs, jquery-ui, jquery.mousewheel, imahesloaded.pkgd.min, underscore-min,raphael-min,twitter/bootstrap,bootstrap-tour,jquery.cookie
,boostrap-select.min
ok i will try that
seanlinsley
those are all being provided by the asset pipeline. `require_tree .` only looks for files in the current directory (hence the dot)
tallgirltaadaa
so in my case i can remove the tree without consequence?
seanlinsley
yeah, assuming you don’t have any separate files in app/assets that need to be included
if you do, you can require them one by one
tallgirltaadaa
ok thank you i will work on that
seanlinsley
glad to help :-)
tallgirltaadaa
well i have another question
i was going to go the route of putting the active admin css.scss and js in another file
i am not requiring active admin in my require list... but by "rails magic" is it there just not explicitly
seanlinsley
I don’t follow
tallgirltaadaa
there is no //=require active_admin
so once i put it in its own files.. how so i get it out of the tree
seanlinsley
what do you mean “put it in its own files”?
cpruitt joined the channel
you need to move both files to vendor/assets
tallgirltaadaa
you said Alternatively : if you want to keep the `require_tree .` then move active_admin.css.scss to vendor/assets/stylesheets and active_admin.js.coffee to vendor/assets/javascripts