'require_tree' will tell asset pipeline to include all the files within the specified directory. By default it is set to current directory with . (i,e dot). Refer to http://guides.rubyonrails.org/asset_pipeline.html for more details.
After changing the filename of application.css to application.scss, \*=require_tree .
can be replaced with @import "/\*"
(Example:- on a mac the statement would be translated to a path something like /Users/user_name/app_name/app/assets/stylesheets/*
) . The *
here imports all the files within the stylesheets directory. Refer to Is it possible to import a whole directory in sass using @import? for more information.
This should solve your problem.
But, the suggested way to go about this is to create another file with a .scss extension that contains all the imports you want and use \*=require_self
and \*=require_tree .
within the application.scss
file.