Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8171545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:29:44+00:00 2026-06-06T21:29:44+00:00

Bootstrap’s popover works perfectly on my local machine but doesn’t seem to work on

  • 0

Bootstrap’s popover works perfectly on my local machine but doesn’t seem to work on heroku. I can’t figure out why. Here’s the relevant files/code I can think of:

Bundler.require(*Rails.groups(:assets => %w(development test)))

I also tried lazy compiling with no luck (Bundler.require(:default, :assets, Rails.env))

and the popover view code:

%img.pop{:alt => "", :src => "#{photo.photo.url(:thumb)}", :rel => 'popover', :'data-placement' => 'bottom', :'data-content' => image_tag(photo.photo.url(:small))}

I have bootstrap-popover.js in my assets/javascripts folder. and here is my application.js file:

//= require jquery
//= require jquery_ujs
//= require_tree .
//= require bootstrap-popover
//= require bootstrap-alert
//= require bootstrap-dropdown


$(document).ready(function()
{
  $('.pop').popover();
  $('#hp_email_field').focus();

});

To be honest, I’m not even sure if precompiling is turned on right now. I think it is based on the first code line I posted here. any help is appreciated. everything works fine in local

EDIT: FYI – turning on lazy compile is the only way to get activeadmin working…not sure why…so i turned lazy compile back on

EDIT2: also, when I look at console and try $(‘.pop’).popover(); it says there’s no method for that..obviously it isn’t loading properly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:29:45+00:00Added an answer on June 6, 2026 at 9:29 pm

    I had a similar issue. precompiling the assets, then checking them into git and deploying to heroku solved it for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Bootstrap .dropdown-menu.pull-right selector doesn't seem to work (the code is in navbar.less, lines
The bootstrap based maven-fluido-skin skin is eye candy but I cannot figure out how
Twitter-Bootstrap buttons are awesomely beautiful. Try them out by scrolling over them But they
I used bootstrap-tabs.js and it has worked perfectly. But I didn't find information about
Using Bootstrap, I cannot figure out what I need to center MiDs element so
Bootstrap executes fine during run-app (database is seeded). But it doesn't appear to get
bootstrap popover currrently expects this: <a href=# id=example class=btn btn-danger rel=popover data-content=It's so simple
I'm using Twitter Bootstrap with Django to render forms. Bootstrap can format your forms
With Bootstrap loaded, the div doesn't expand along with the contents inside. So if
I've run the bootstrap batch and then the bjam exe, but as I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.