Rails 3.2.8 Application.js and Application.css are not working as expcted

后端 未结 4 1268
野性不改
野性不改 2020-12-31 11:04

When i try to include

<%= stylesheet_link_tag    \"application\" %>
<%= javascript_include_tag \"application\" %>

The content

4条回答
  •  佛祖请我去吃肉
    2020-12-31 11:53

    Are you using sass or less or something similar?

    I just had this problem and I found it was because the application.css file contained scss code, which it cannot handle by default.

    Simply renaming the file to application.css.scss resolved this issue under Rails 4.2.1.

提交回复
热议问题