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 7959099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:31:11+00:00 2026-06-04T04:31:11+00:00

Newbie to Ruby on Rails and Twitter Bootstrap :P Trying to add a popover

  • 0

Newbie to Ruby on Rails and Twitter Bootstrap 😛

Trying to add a popover to an image where, when you scroll over it, a popout appears with a larger version of the image.

The image:

<ul class="thumbnails">
  <div class="span1">
    <ul>
     <li>
      <a href="#" class="thumbnail"><img src="http://placehold.it/125x100" alt=""></a>
     </li>
  </div>
    </ul>

I’m trying to use Twitter Bootstrap’s “Popovers” by adding “bootstrap-popover.js” and ‘bootstrap-tooltip.js’ (which it extends) to the appropriate folders in my asset directory (using Rails 3.2).

If I wanted to activate it so the popout works when I scroll over the image, how would I do this?

I’m really just not sure how to call a specific element for the popover to work on.

What I'm trying to make happen :)

Thank you so much!!!

  • 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-04T04:31:12+00:00Added an answer on June 4, 2026 at 4:31 am

    Put this javascript statement in after wherever you link your javascript files. This will activate the popover for all ‘a’ elements (links in your page).

    $('a').popover(placement:'top');
    

    Try this code to test it out. setting the rel, title, and data-content attributes in the link tag will activate the popever on that element.

    <ul class="thumbnails">
      <div class="span1">
        <ul>
         <li>
          <a href="#" rel="popover" title="A Title" data-content="<img src='http://placehold.it/125x100'/>">Hover over me for image.</a>
         </li>
      </div>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I a newbie trying to write a [Ruby ON Rails] spec to make sure
hey I am newbie to ruby on rails and I am trying run a
Still a rails and ruby newbie, and I'm trying to figure out why adding
I'm Ruby/Rails newbie and trying to get the laika tool ( http://github.com/CCHIT/laika/tree/master ) running
I am a newbie to Ruby on Rails and I am trying to learn
I am a newbie to Ruby on Rails and trying to setup oracle based
I am a newbie to Ruby on Rails . I have started working on
I'm a newbie ruby on rails programmer, so forgive me if this is a
I'm a Ruby on Rails newbie. I'm learning Rails in my spare time (my
I am a ruby and rails newbie. And I am working on a rails

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.