0

I have some stylesheets in a subfolder /app/assets/stylesheets/themes of my rails app. These assets have the file extension .css.scss extension.

In my development environment I've been addressing those files with:

 asset_path 'themes/theme-name.css.scss'

However, when I go to production Rails won't find those files. When I use just .css extension it seems to be working okay:

asset_path 'theme/theme-name.css'

My question is: what is the correct way to address asset files with multiple extensions?

Thanks for help

4

2 回答 2

2

The correct way should be:

stylesheet_link_tag 'themes/theme-name'

If Rails is configured correct, the assets pipeline will figure out the file extensions itself .

于 2013-09-10T09:37:08.900 回答
0

Do you have sass loaded in your Gemfile?

于 2013-09-10T09:32:08.037 回答