2012-02-05 1 views
0

が動作していない私のapplication.cssです:application.cssはここ

/* 
* This is a manifest file that'll be compiled into application.css, which will include all the files 
* listed below. 
* 
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, 
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. 
* 
* 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 bootstrap 
*= require bootstrap-responsive 
*= require style 

私のCSSスタイルのいずれも適用されていないされているいくつかの理由。ソースを表示してapplication.cssを開くと、ファイルはまったく同じです。それはそれを編集していません。 application.jsはうまくコンパイルされています!

私gemfile:https://gist.github.com/1748054

任意のアイデア?

EDIT:あなたのconfig/application.rb

# Enable the asset pipeline 
config.assets.enabled = true 

セットはまた、これは暗闇の中でショットのビットですが、ドン:はあなたが持っていることを確認してください*/

+0

命名されていることを確認し、我々はあなたのGemfileを見てすることはできますか? – Matthew

+0

私は投稿にそれを追加しました – imjp

+0

それはうまく見えます – Matthew

答えて

0

を追加することによって、それを修正次のような行が必要です:

*=require_self 
他のものの前に

私はより正確なスタイルシートを含めるために、常に盛り付けのインポートを使用します。だから、私のは、次のようになります。

/* 
*= require_self 
*/ 
@import "bootstrap.css"; 
@import "bootstrap-responsive.css"; 
@import "style.css"; 

それからちょうどあなたのファイルはapplication.css.scss

+0

これは既にtrueに設定されています。/ – imjp

+0

application.scssの名前を変更すると、構文が正しくないためにSASSエラーが発生します。私はエラーを解決しました!私は最後に '* /'を忘れてしまったようだ。 – imjp

+0

笑いつも何か簡単.... – Matthew