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

  • Home
  • SEARCH
  • 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 8592417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:44:46+00:00 2026-06-11T23:44:46+00:00

I would like to create a drop down menu on rails 3.2.8 using bootstrap

  • 0

I would like to create a drop down menu on rails 3.2.8 using bootstrap twitter. The drop down works in Firefox but would not open in IE9. Here is the code that I have so far:

<!DOCTYPE HTML>
<html>
<head>
<title><%= full_title(yield(:title)) %></title>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

<script type="text/javascript" src="https://raw.github.com/twitter/bootstrap/master/js/bootstrap-
dropdown.js"></script>

<%= stylesheet_link_tag "application", media: "all"%>
<%= javascript_include_tag%>
<%= csrf_meta_tags %>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar .navbar-fixed-top">
<div class="nav-collapse">
<div class="navbar-inner">
    <div class="container">
        <a class="brand" href="#">
            Home
        </a>
        <ul class="nav">
            <li class="dropdown" id="fat-menu">
                <a href="#fat-menu" class="dropdown-toggle" data-toggle="dropdown">
                    Drop-Down Menu
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a>SAve</a></li>
                    <li class="divider"></li>
                    <li><a>Print</a></li>
                </ul>
            </li>
        </ul>
    </div>
</div>
</div>
</div>
<script>$(function() {$('.dropdown-toggle').dropdown()});</script>       
<div class="container">
  <%= yield %>
</div>
</body>
</html>

Please is there something that I need to do to fix the issue on the IE9? Thanks

  • 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-11T23:44:47+00:00Added an answer on June 11, 2026 at 11:44 pm

    You can’t use https://raw.github.com/twitter/bootstrap/master/js/bootstrap-dropdown.js because the MIMETYPE is text/plain and apparently IE9 will reject that.

    Just download the resource and serve it locally or find a valid cdn.


    For example: http://jsfiddle.net/2D7wD/1/

    using: <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>

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

Sidebar

Related Questions

I would like to create a drop down menu on top of my google
I'm trying to create a menu that works like the android notification drop-down area.
I would like to create drop down lists on several menu items in a
like the title says, I am trying to create a drop down menu using
I would like to display all my category names in a drop down menu
I am developing a Rails application for AWS and would like to create drop
I would like to create simple drop down with options and one of the
Instead of categories I would like products to appear in the drop-down navigation menu
I have a drop down menu created purely with CSS. I would like to
Hi I am trying to create a drop down menu using GWT. This is

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.