Skip to content

Instantly share code, notes, and snippets.

@yoavmatchulsky
Created June 15, 2015 08:56
Show Gist options
  • Save yoavmatchulsky/a413564b297c789ae56b to your computer and use it in GitHub Desktop.
Save yoavmatchulsky/a413564b297c789ae56b to your computer and use it in GitHub Desktop.
Rails with Angular's application.rb
module RailsWithNg
class Application < Rails::Application
[...]
config.assets.paths << Rails.root.join('app', 'ng')
# Add bower CSS components
bower_path = Rails.root.join('vendor', 'assets', 'bower_components')
config.assets.paths << bower_path
config.sass.load_paths << bower_path
# and paths to use sass's @import for bootstrap
config.assets.paths << bower_path.join('bootstrap-sass', 'assets', 'stylesheets')
config.assets.precompile << %r( bootstrap-sass/assets/fonts/bootstrap/[\w-]+\.(?:eot|svg|ttf|woff2?)$ )
# support bootstrap glyphicons
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
config.font_assets.origin = '*'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment