【问题标题】:Turn off Tabulous css scaffolding in rails application在 Rails 应用程序中关闭 Tabulous css 脚手架
【发布时间】:2013-06-30 03:56:02
【问题描述】:

我刚刚在我的 Rails 应用程序中安装了 tabulous gem。我也安装了 twitter bootstrap(使用twitter-bootstrap-rails)。

我在关闭 tabulous 的 CSS 脚手架时遇到问题。我不能按照建议“关闭它”,它会覆盖我的引导 css。

阅读表格参考,我假设默认情况下没有 css 脚手架,要打开它,您应该将 use_css_scaffolding 行添加到 tabulous.rb 文件中。

我尝试使用use_css_scaffolding = false(尽管文档中没有任何内容)但没有结果。 Css 仍然出现在我生成的 html 中。

我的tabulous.rb 配置文件如下所示:

Tabulous.setup do

  tabs do

    ...

  end

  customize do

   renderer :bootstrap_pill

 end

  # The following will insert some CSS straight into your HTML so that you
  # can quickly prototype an app with halfway-decent looking tabs.
  #
  # This scaffolding should be turned off and replaced by your own custom
  # CSS before using tabulous in production.

end

我还能在哪里禁用这个 css 脚手架?

【问题讨论】:

    标签: ruby-on-rails-3.2 gem


    【解决方案1】:

    通过简单的 Rails 服务器重启,我可以解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-21
      • 2013-04-07
      • 2019-07-01
      • 1970-01-01
      • 2013-04-26
      • 2013-07-05
      • 2010-09-14
      相关资源
      最近更新 更多