Putting this in my application.css.scss does not load the sass library.
@import ‘foundation.scss’;
Even if I put this in my config.
config.sass.load_paths << Rails.root.join( ‘vendor’, ‘assets’, ‘components’, ‘foundation-sites’, ‘scss’ )
Thanks.
Putting this in my application.css.scss does not load the sass library.
@import ‘foundation.scss’;
Even if I put this in my config.
config.sass.load_paths << Rails.root.join( ‘vendor’, ‘assets’, ‘components’, ‘foundation-sites’, ‘scss’ )
Thanks.
Hey Justin,
I can probably put it anywhere, but I’m using bower to manage js/css/scss. Going by an article is how I decided on components folder. Seems nice and clean that way, but I’m open to better options. Yes the scss is in that folder it’s called foundation.scss. No underscore in file name. Yes I restarted. However now that you mention the error, there is no error. There’s just no css in the application.css file it creates. And the clear fact there’s no style. The foundation.scss just has a bunch of includes. Here’s a sample.
/ Sass utilities
@import ‘util/util’;
// Global variables and styles
@import ‘global’;
// Components
@import ‘grid/grid’;
@import ‘typography/typography’;
@import ‘forms/forms’;
@import ‘components/visibility’;
@import ‘components/float’;
@import ‘components/button’;
@import ‘components/button-group’;
@import ‘components/accordion-menu’;
Ya it appears to pull in the foundation.scss file, but none of the imports in that file.
Interesting. Have you tried clearing Rails’ tmp files with rake tmp:clear
? I’ve seen that clear up weird asset-related issues.
If that doesn’t work, would it be possible to push your app to GitHub or somewhere public so I could take a look? If the code is private, you could potentially create a fresh rails app with a minimal example of your problem (just your bower set up with application.scss importing foundation.scss - the minimal case might even shed light on the problem itself).
I created a new app and setup bower with it. Added to load path. It does the same. Loads the specific file, but that loaded files imports do not load.
OMG I’m just stupid. I just figured out what my issue is. All is working fine, I just forgot to use the includes. Geez. Sorry for the waste of time, and thanks for helping out.
No problem - glad you got it worked out!