0

私はbootstrap-sass gemでrails3を使用しています。

エラーが発生しました:

ActionController::RoutingError (No route matches [GET] "/img/glyphicons-halflings.png"):

私のbootstrap_and_overrides.css.scssは次のとおりです。

@import "bootstrap";
body { padding-top: 60px; }
@import "bootstrap-responsive";

アプリケーション.js

//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require paloma
//= require_tree .
4

1 に答える 1

2

bootstrap_and_overrides.css.scss使用する場合は、このコードを で試してくださいgem "twitter-bootstrap-rails"

 @import "twitter/bootstrap/bootstrap";
 @import "twitter/bootstrap/responsive";

// Set the correct sprite paths
@iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings.png");
@iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white.png");
于 2013-07-24T05:48:12.120 に答える