# Rails 3.1, SASS, @import, and directories

**URL:** <https://www.ruby-forum.com/t/rails-3-1-sass-import-and-directories/208377>\
**Category:** Rails\
**Created:** [June 16, 2011, 6:54pm UTC](https://www.ruby-forum.com/t/rails-3-1-sass-import-and-directories/208377 "2011-06-16T18:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [June 16, 2011, 6:54pm UTC](https://www.ruby-forum.com/t/rails-3-1-sass-import-and-directories/208377/1 "2011-06-16T18:54:49Z")

</div>

So, here’s the problem: @import isn’t liking other directories.

Example:

app/  
assets/  
stylesheets/  
extras/  
\_mixins.sass  
\_variables.sass  
photographs/  
index.css.sass

And the contents of app/assets/stylesheets/photographs/index.css.sass  
is:

@import “…/extras/mixins”, “…/extras/variables”

I get the following error:

File to import not found or unreadable: extras/mixins.  
Load path: .  
(in  
/Users/krainboltgreene/repo/ruby/rails/dice-envy/app/assets/stylesheets/reviews/new.css.sass.erb)

Now, here’s the thing, with this structure:

app/  
assets/  
stylesheets/  
extras/  
\_mixins.sass  
\_variables.sass  
photographs.css.sass

And the contents of app/assets/stylesheets/photographs.css.sass is:

@import “extras/mixins”, “extras/variables”

Works fine. Absolutely.
