GithubHelp home page GithubHelp logo

Comments (9)

thomas-mcdonald avatar thomas-mcdonald commented on April 28, 2024

norepro here, I've just got it working in my application.

I would point out that the API changed slightly for dropdowns, but if it works when you directly include it then I'm not sure where the problem is.

from bootstrap-sass.

 avatar commented on April 28, 2024

Possibly related: after updating bootstrap-sass from 1.4.3 to 2.0.0, I'm getting:

couldn't find file 'bootstrap-alerts'
(in /Volumes/Macintosh HD/Data/Dropbox/railswork/marqer/app/assets/javascripts/application.js:12)

The referenced line is

//= require bootstrap-alerts

from bootstrap-sass.

 avatar commented on April 28, 2024

Never mind. Twitter changed from bootstrap-alerts to bootstrap-alert. A foolish consistency...

from bootstrap-sass.

barriault avatar barriault commented on April 28, 2024

Try this in application.js

//= require jquery
//= require jquery_ujs
//= require bootstrap

I was having the same problem until I moved the //= require bootstrap statement AFTER the //= require jquery_ujs statement.

from bootstrap-sass.

thomas-mcdonald avatar thomas-mcdonald commented on April 28, 2024

@barriault twitter/bootstrap? Are you pulling in an additional library? bootstrap-sass doesn't have anything namespaced under twitter.

from bootstrap-sass.

barriault avatar barriault commented on April 28, 2024

@thomas-mcdonald Sorry, I've been playing with both the bootstrap-sass and the bootstrap-sass-rails gems. But I was having the same problem in both my test applications until I moved the require AFTER the jQuery stuff.

from bootstrap-sass.

thomas-mcdonald avatar thomas-mcdonald commented on April 28, 2024

The Twitter components depend upon the presence of jQuery, although they shouldn't need the UJS helper.

from bootstrap-sass.

 avatar commented on April 28, 2024

Thanks for the responses. Changing the require order fixes this for me.

from bootstrap-sass.

hansy avatar hansy commented on April 28, 2024

I'm actually randomly running into this issue after everything working perfectly for so long.

The Dropdown JS suddenly does not work for me. Everything else works fine. I suspect there's some sort of JS clash somewhere, but I'm not sure where.

I think the problem started after moving the gem out of the :asset group because I was having trouble deploying to Heroku.

from bootstrap-sass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.