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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:57:12+00:00 2026-05-30T01:57:12+00:00

I am using Rails 3.2 and the twitter-bootsrap-rails gem (link) . I have a

  • 0

I am using Rails 3.2 and the twitter-bootsrap-rails gem (link).

I have a modal, this is the html.erb:

<div id="myModal" class="modal hide fade in" style="display: block;">
  <div class="modal-header">
    <a class="close" data-dismiss="modal">×</a>
    <h3><%= t '.add_category_title' %></h3>
  </div>
  <div class="modal-body">
    <%= render :partial => 'wgform' %>
  </div>
</div>

this modal should be hidden when the page loads, and triggered with a button:

<a class="btn" href="#myModal" data-toggle="modal"><%= t '.add_category_btn' %></a>

but for some reason, the modal appear when the page loads, with css attribute “display:block;” (it should be “display:none;”).
The “X” on the top right works right to dismiss it, and the button correctly shows the modal (if clicked after closing it).

The strange thing is that all was working one hour ago, and I didn’t modified that file.

I’m stuck, don’t know where to look.

  • 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-05-30T01:57:13+00:00Added an answer on May 30, 2026 at 1:57 am

    Solved editing bootstrap.js.coffee (see the comments above).

    bootstrap.js.coffee:

    $ ->
      $("body > .topbar").scrollSpy()
    $ ->
      $(".tabs").tabs()
    $ ->
      $("a[rel=twipsy]").twipsy live: true
    $ ->
      $("a[rel=popover]").popover offset: 10
    $ ->
      $(".topbar-wrapper").dropdown()
    $ ->
      $(".alert-message").alert()
    $ ->
      domModal = $(".modal").modal(
        backdrop: true
        closeOnEscape: true
      )
      $(".open-modal").click ->
        domModal.toggle() 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails 3.2 app using Twitter Bootstrap via the gem ' twitter-bootstrap-rails
I'm asking about using a Twitter Bootstrap modal window with a Rails form helper
In attempting to upgrade to Bootstrap 2 (using twitter-bootstrap-rails gem), it seems that page-specific
Using Rails 3.2 and Twitter Bootstrap bootstrap-popover.js and bootstrap-tooltip.js here This is what I'd
I'm using Rails 3.1 and Twitter Bootstrap, but struggling to replicate <a class=btn btn-large
Going nuts here. I'm developing a rails app, and I'm using the twitter-bootstrap-rails gem
I am writing my first Rails app using the twitter gem. I'm simply retrieving
How to use custom variables when using twitter-bootstrap-rails gem? I want to change the
Hey so I am using Rails PJAX for my web application with twitter bootstrap
I am using Twitter Bootstrap in my rails app. My navbar looks perfect in

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.