Using Twitter Bootstrap in my Rails app, missing markup

amanda_dal

New Member
I installed twitter-bootstrap-rails gem with less support by adding the following in my Gemfile:\[code\] gem 'therubyracer' gem 'less-rails' gem 'twitter-bootstrap-rails'\[/code\]After running a bundle install, I went ahead and ran the generator:\[code\]rails generate bootstrap:install static\[/code\]My application.css in app/assets/stylesheets/ has the following in it:\[code\] *= require_self *= require_tree .\[/code\]If I view source, I do see the following there:\[code\]<link href="http://stackoverflow.com/assets/bootstrap_and_overrides.css?body=1" media="all" rel="stylesheet" />\[/code\]So that's there. Then I started playing with the Grid system and added the markup \[code\]show-grid\[/code\] and noticed there's no style for it. I proceeded to add the following in my bootstrap_and_override.css.less file:\[code\]@import "twitter/bootstrap/reset.less";@import "twitter/bootstrap/variables.less";@import "twitter/bootstrap/mixins.less";@import "twitter/bootstrap/scaffolding.less";@import "twitter/bootstrap/grid.less";@import "twitter/bootstrap/layouts.less";@import "twitter/bootstrap/type.less";@import "twitter/bootstrap/forms.less";@import "twitter/bootstrap/wells.less";@import "twitter/bootstrap/component-animations.less";@import "twitter/bootstrap/buttons.less";@import "twitter/bootstrap/close.less";@import "twitter/bootstrap/navs.less";@import "twitter/bootstrap/navbar.less";@import "twitter/bootstrap/labels-badges.less";@import "twitter/bootstrap/hero-unit.less";@import "twitter/bootstrap/utilities.less";@import "twitter/bootstrap/responsive";\[/code\]After adding these, I started the local Rails server up and still don't see the markup in the application. Must be doing something wrong here. Does application.css need to be renamed application.css.less? Do I need to recompile something? I'm guessing \[code\]show-grid\[/code\] styling is on one of the imports below (probably grid.less), and I'm guessing that something I'm doing incorrectly is not importing those stylesheets. Where's a good step to begin troubleshooting this?
 
Back
Top