3

I try to use bootswatch-rails, but it doesn't work well, for example, button doesn't appear right, not like on the bootwatch site, that show.
I put bootstrap-sass and bootswatch in my gemfile and bundle install

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'bootswatch-rails', '>=0.2.0'

  gem 'uglifier', '>= 1.0.3'
end
gem 'bootstrap-sass', '>= 2.1.0.0'

and in my bootstrap_and_overrides.css.scss file looks like this

// First import journal variables
@import "bootswatch/cerulean/variables";

// Then bootstrap itself
@import "bootstrap";

// Responsive styles go here in case you want them
@import "bootstrap-responsive";

// And finally bootswatch style itself
@import "bootswatch/cerulean/bootswatch";  

I really don't know what I do wrong.

Sachin Prasad
  • 5,365
  • 12
  • 54
  • 101
softshipper
  • 32,463
  • 51
  • 192
  • 400
  • Do you have bootstrap_and_overrides.css.scss imported in your application.css? Or asked differently… Show us the comments in your application.css – NobbZ Jan 11 '13 at 17:34
  • i have different layout. in this case i use home_layout.html.erb and i create home.css.scss. this is file, the bootstrap_and_overrides.css.scss is included like @import bootstrap_and_overrides.css.scss. – softshipper Jan 12 '13 at 14:13

1 Answers1

1

do you have any other css files being imported that you aren't taking into consideration such as scaffold.css (when you generate a resource via the scaffold command)?

neon
  • 2,811
  • 6
  • 30
  • 44
  • I'm not sure, but as a shot in the dark I'd try putting "gem 'bootstrap-sass', '>= 2.1.0.0'" inside group :assets in your Gemfile. I'd also comment out the bootstrap-responsive styles - they sometimes get in the way. – neon Jan 07 '13 at 01:58
  • so i should put gem 'bootstrap-sass', '>= 2.1.0.0'" inside group :assets right? – softshipper Jan 07 '13 at 13:38