【问题标题】:bootstrap-sass border-radius error in heroku productionheroku生产中的bootstrap-sass边界半径错误
【发布时间】:2013-02-07 10:07:11
【问题描述】:

将我的应用程序部署到 heroku 时,我收到以下错误:

2013-02-21T21:57:52+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS a
fter "          .border-radius": expected "{", was "();"

自从找到this error 后,我更新了 bootstrap-sass,但这并不能解决问题。 我正在使用:

gem 'rails', '3.2.11'
gem 'sass-rails'
gem 'bootstrap-sass', '~> 2.3.0.0'
gem 'bootstrap-colorpicker-rails'

我真的很茫然。

*似乎 bootstrap-colorpicker-rails 0.2 导致了这种情况,所以我恢复到 0.1。

【问题讨论】:

  • 在我看来,您这里的拼写错误很少,您能在此处显示您的 CSS 文件,其中包含提到的“border-radius”部分吗?你的应用程序在你的本地主机上运行没有错误吗?

标签: ruby-on-rails ruby heroku twitter-bootstrap sass


【解决方案1】:

确保.border-radius 类周围有括号。不是括号 ()。

.border-radius {
    Your CSS
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-23
    • 2018-04-16
    • 1970-01-01
    • 1970-01-01
    • 2020-11-16
    • 2016-05-28
    • 2014-04-30
    • 1970-01-01
    相关资源
    最近更新 更多