How do I use reference images in Sass when using Rails 3.1?

后端 未结 6 829
北荒
北荒 2020-12-12 19:29

I have a Rails 3.1 project with the asset pipeline working great. The problem is that I need to reference images in my Sass, but Rails calculates image URLs. (This is partic

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 19:45

    sass-rails gem defines Sass functions that can be used from Sass, without ERB processing. https://github.com/rails/sass-rails

提交回复
热议问题