Rails5无路线匹配[GET]”/bootstrap/css/bootstrap.min.css“;

Rails5无路线匹配[GET]”/bootstrap/css/bootstrap.min.css“;,css,ruby-on-rails,Css,Ruby On Rails,我将在下面写一页: <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta na

我将在下面写一页:

<head> 
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">

<title>Shop Homepage - Start Bootstrap Template</title>

<!-- Bootstrap core CSS -->
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="/shop-homepage.css" rel="stylesheet">

</head>
我的资产是这样的

我已经编辑了application.scss。我的资产在rails的路径中

 @import "bootstrap-sprockets";
 @import "bootstrap";
 @import "../css/shop-homepage.css";

为什么它找不到Rails 5的.css?我强烈建议使用gem,而不是自己导入引导文件

这是标准方法:


在这种情况下,将问题标记为“已回答”
 @import "bootstrap-sprockets";
 @import "bootstrap";
 @import "../css/shop-homepage.css";