Isa*_*key 4 html ruby ruby-on-rails twitter-bootstrap
出于某种原因,我的应用程序没有在我的Aseets文件夹中找到我的字形图标.这是我收到的消息
ActionController::RoutingError (No route matches [GET] "/assets/images/glyphicons-halflings.png"):
Run Code Online (Sandbox Code Playgroud)
我很抱歉,如果这是一个愚蠢的问题,或者它已经得到了回答,我对rails很新,我似乎无法弄明白.
这取决于你使用的是什么.尝试将此添加到您的application.css.scss或您正在使用的任何文件来覆盖一些引导程序的东西.
[class^="icon-"], [class*=" icon-"] {
background-image: url(/assets/glyphicons-halflings.png)
}
Run Code Online (Sandbox Code Playgroud)
我的猜测是,它没有在正确的位置搜索.所以找出它的位置,然后直接指向那里的链接.