Rails using cached application.css despite changes

后端 未结 9 560
萌比男神i
萌比男神i 2020-12-30 00:53

I have a Rails 3.1 application that uses SASS. The application.css.scss file looks like:

@import \'reset.css\';
@import \'960.css\';
@import \'p         


        
9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 01:31

    I've had a similiar issue after running rake assets:precompile in development. Maybe Rails is serving precompiled assets from public/assets? Try cleaning that up.

    You shouldn't need to touch aplication.css.scss in development, rails should serve the new content whenever one of the @included files changes.

    Also, make sure you have the following in config/environments/development.rb

    # Do not compress assets
    config.assets.compress = false
    
    # Expands the lines which load the assets
    config.assets.debug = true
    

提交回复
热议问题