metaskills/less-rails-bootstrap — Issue #34: Not loading all CSS files
Author: rtacconi
Created: 2012-02-20 11:24:43+00:00
State: open

Since I adopted this gem the development has been a nightmare. I no mean any offence but my app does not behave like any Rails app. In development all styles are loaded, in staging not, some are missing. In staging only used to work with config.assets.compile = true and a file loader which imports the stylesheets:

@import 'twitter/bootstrap';
@import 'colours.css.less';
@import 'deal_timer.css.less';
@import 'divs.css.less';
@import 'drop_down.css.less';
@import 'forms.css.less';
@import 'images.css.less';
more imports ...

My application.css

*= require_self
*= require loader
*= require_tree .

Part of my Gemfile:

gem 'less-rails-bootstrap', :git => 'git://github.com/andersonfreitas/less-rails-bootstrap.git'
gem 'twitter_bootstrap_form_for', :git => 'git://github.com/stouset/twitter_bootstrap_form_for.git'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
gem 'less-rails'
end

Why less-rails-bootstrap does not compile as CSS under assets/stylesheets? It is not normal in a standard app with 'sass-rails'