54480

Switching from Blueprint to Twitter Bootstrap

Question:

I'm replacing Blueprint with Twitter Bootstrap in a Rails 3.1 application. I've followed the example in the Railscast and I have it working in that example. However, when I try to put it into my application the collapse functionality in the navbar doesn't work. When I click on it nothing happens.

I'm using the twitter-bootstrap-rails gem.

I've removed the Blueprint folder from the stylesheets directory. I've also removed any Blueprint javascripts from the javascripts directory. I've cleared any compiled versions from the Public/Assets directory. I've also cleared my tmp directory. Restarted my server and for some reason the collapse functionality still doesn't work.

Has anyone else done this? Any ideas on what I should try next?

Answer1:

After debugging and Googling for an answer I found that I needed to update jquery-rails to 1.0.18

Once I did that everything worked fine.

Recommend

  • How can I have Brand and Navbar on separate lines?
  • How to render flexdashboard from the command line?
  • Leaflet map not sizing to dimensions of target element
  • How an included partial insert code into parent's block?
  • jQuery-Marquee only working in Firefox
  • How do display a UIAlertView from a block on iOS?
  • How to reply a tweet using the Twitter gem?
  • Bootstrap Popover showing at wrong place upon zoom in/out or resizing Browser window
  • Heroku push rejected - Hartl's Rails 3.2 tutorial
  • Error while using PDF Kit
  • Angular Bootstrap Carousel Slide Transition not working correctly
  • Two Tables Serving as one Model in Rails
  • How to override value that appears in a dropdown in the rails_admin gem
  • uml Composition relationships to RDF and OWL
  • Bootstrap (v3.3.4) glyphicons not displayed in IE when refresh page (F5)
  • Javascript, Regex - I need to grab each section of a string contained in brackets
  • as3-flash: any way to access all the instances placed in different frames from document class?
  • Ember.js model to be organised as a tree structure
  • Adjust width of select element according to selected option's width
  • Loading .coffee files via a view in Rails
  • Install PHP intl extension on MacOS
  • How to use carriage return with multiple line?
  • Could not find rake using whenever rails
  • Cancel a live stream “fast motion” catch-up in Flash
  • why do I get the error when installing the gem 'pg'? [duplicate]
  • Paperclip, set path outside of rails root folder
  • QLineEdit password safety
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Updated Ionic CLI but shows previous version (Windows)
  • jquery mobile loadPage not working
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • bootstrap to use multiple ng-app
  • Data Validation Drop Down Box Arrow Disappearing
  • Comma separated Values
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • How do you join a server to an Active Directory (domain)?
  • Append folder name and increment by 1 using batch script
  • How to load view controller without button in storyboard?