【问题标题】:Adding flat_ui to rails app - followed instructions but page throws errors将 flat_ui 添加到 rails 应用程序 - 遵循说明但页面抛出错误
【发布时间】:2013-10-12 00:28:32
【问题描述】:

当前设置

宝石文件

#More stuff above
gem "flatui-rails"

application.css

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require_tree .
 *= require flat_ui
 */

当我尝试在开发模式下加载页面时出现错误 *找不到文件'flat_iu'*

我已经运行了 bundle

捆绑展示 flat_ui 结果:~/.rvm/gems/ruby-2.0.0-p247/gems/flatui-rails-0.0.4

我现在无法弄清楚我缺少什么。这是我的第一个 Rails 应用程序,所以我不知道上面是否有遗漏。

环境

  • rails 版本 4 - 开发服务器
  • ruby 版本 2.0.0p247
  • Linux(初级操作系统)

【问题讨论】:

    标签: ruby-on-rails gem ruby-on-rails-4 asset-pipeline


    【解决方案1】:

    您似乎拼错了图书馆的名称。它是一个破折号而不是下划线。

    *= require flat-ui
    

    【讨论】:

    • 这确实是问题所在。我对这些错误没有参考点。我在哪里可以找到要使用的正确名称,而不是在网上某个地方找到它?
    • 您通常可以在 gems 的 Github 页面上找到安装说明。这就是我在这种情况下所做的。 github.com/pkurek/flatui-rails
    猜你喜欢
    • 2019-07-11
    • 1970-01-01
    • 2019-11-19
    • 1970-01-01
    • 2018-12-31
    • 1970-01-01
    • 1970-01-01
    • 2013-01-29
    • 1970-01-01
    相关资源
    最近更新 更多