#activeadmin

/

      • kai3x5_ joined the channel
      • seanlinsley joined the channel
      • tallgirltaadaa joined the channel
      • tallgirltaadaa
        hello
      • seanlinsley
        hi
      • tallgirltaadaa
        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
      • ok nm i understand
      • shekibobo joined the channel
      • shekibob_ joined the channel
      • shekibobo has quit
      • shekibob_ has quit
      • cpruitt has quit
      • cpruitt joined the channel
      • cpruitt has quit
      • cpruitt joined the channel
      • smc has quit
      • tallgirltaadaa has quit
      • cpruitt has quit
      • cpruitt joined the channel
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • cpruitt has quit
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • ball-hayden has quit
      • ball-hayden joined the channel
      • ball-hayden is now known as Guest2803
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • jrgifford__ is now known as jrgifford
      • jrgifford has quit
      • jrgifford joined the channel
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibobo has quit
      • shekibobo joined the channel
      • cpruitt joined the channel
      • elia joined the channel
      • elia has quit
      • elia joined the channel
      • _elia joined the channel
      • elia has quit
      • _elia has quit
      • elia joined the channel
      • elia has quit
      • [o__o] joined the channel
      • seanlinsley joined the channel
      • elia joined the channel
      • elia has quit
      • vasilakisfil has quit
      • shekibobo has quit
      • shekibobo joined the channel
      • shekibob_ joined the channel
      • shekibobo has quit
      • elia joined the channel
      • elia has quit
      • cpruitt has quit
      • elia joined the channel
      • cpruitt joined the channel
      • elia has quit
      • shekibob_ has quit
      • shekibobo joined the channel
      • elia joined the channel
      • shekibobo has quit
      • elia has quit
      • elia joined the channel
      • cpruitt has quit
      • elia has quit
      • elia joined the channel
      • elia has quit
      • weaksauce has quit
      • cpruitt joined the channel
      • cpruitt has quit
      • cpruitt joined the channel
      • cpruitt has quit
      • cpruitt joined the channel
      • cpruitt has quit
      • cpruitt joined the channel
      • cpruitt has quit
      • cpruitt joined the channel
      • cpruitt has quit
      • weaksauce joined the channel
      • seanlinsley has quit