Skip to content

Instantly share code, notes, and snippets.

@vajradog
Last active January 1, 2016 16:49
Show Gist options
  • Save vajradog/8173518 to your computer and use it in GitHub Desktop.
Save vajradog/8173518 to your computer and use it in GitHub Desktop.
bootstrap-sass compatibility in Rails 4.0
# As of Rails 4.0 we need to add a line to config/application.rb to make bootstrap-sass compatible with the asset pipeline
require File.expand_path('../boot', __FILE__)
.
.
.
module YourApp
class Application < Rails::Application
.
.
.
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) #Add this line
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment