blueprint/screen.css isn't precompiled

前端 未结 4 1580
故里飘歌
故里飘歌 2020-12-02 07:56

I\'ve been following along Michael Hartl\'s excellent RoR Tutorial, but I\'m using RoR 3.1. I am a newbie to RoR 3.1 and need help related to assets pipeline. Here is my pro

4条回答
  •  心在旅途
    2020-12-02 08:37

    I added a reference to the blueprint stylesheets in my application.css file. This way, I do not have to change the layout to modify the stylesheets, I simply need to modify the application.css file, run rake assets:precompile, and restart the webserver (if webrick or similar).

    My application.css currently looks like this:

    /*
     * This is a manifest file that'll automatically include all the stylesheets available in this directory
     * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
     * the top of the compiled file, but it's generally better to create a new file per style scope.
     *= require_self
     *= require_tree ./blueprint
     *= require_tree . 
     */
    

提交回复
热议问题