Tag: glyphicons

Rails 5.1.2引导程序图标未在生产中提供

这是一个很棒的地方。 我希望很快能够胜任,提供解决方案。 请有人帮忙!!?! 我已经看了几个小时的youtube并阅读了关于网上资产管道预编译的每篇文章。 无论出于何种原因,我决定使用Rails 5.1.2,我不知道这是不是问题。 glyphicons不会在Heroku上渲染或使用 rails s -e production 在我当地的ubuntu上。 我打字 rake assets:precompile RAILS_ENV=production 得到 I, [2018-01-01T16:05:07.261287 #4745] INFO — : Writing /home/dracos/rails/video-store/public/assets/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf I, [2018-01-01T16:05:07.261968 #4745] INFO — : Writing /home/dracos/rails/video-store/public/assets/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf.gz I, [2018-01-01T16:05:07.263049 #4745] INFO — : Writing /home/dracos/rails/video-store/public/assets/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff I, [2018-01-01T16:05:07.264510 #4745] INFO — : Writing /home/dracos/rails/video-store/public/assets/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff2 I, [2018-01-01T16:05:07.289833 #4745] INFO — : […]

Rails link_to带有样式glyphicon的标记标记

我正在尝试使用我在rails应用程序中设置样式的字形图标。 我想让图标成为另一个页面的链接,但不能使用标准的引导程序样式,因为我已经为我的页面样式定制了链接。 我一直收到关键字类错误 – 有谁知道为什么? 谢谢。 我的观点中有以下链接: <%= link_to , page_path(‘messages’) %> 我也有css如下: span.glyphicon-comment { vertical-align:middle; margin:auto; padding:10px; font-size: 2em; text-align: right; a:link {text-decoration:none; background-color:transparent; color:grey;}; a:visited {text-decoration:none;background-color:transparent; color:grey;}; a:hover {text-decoration:none;background-color:transparent; color:dark grey;}; a:active {text-decoration:none;background-color:transparent; color:grey;}; }