无法找到文件' twitter-bootstrap-static / bootstrap'

时间:2015-06-24 15:26:49

标签: ruby-on-rails twitter-bootstrap gem

我"捆绑安装"混帐://github.com/seyhunak/twitter-bootstrap-rails.git。 然后,rails生成bootstrap:install static。这两个命令运行正常,但我在本地服务器中收到此错误。

  

页面#home中的Sprockets :: FileNotFound

     

显示   /Users/   第5行引出的地方:

     

无法找到文件' twitter-bootstrap-static / bootstrap' (在   /Users/)

提取的来源(第5行):

<html>
  <head>
    <title>TODOAPP</title>
    <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>
  </head>

Rails.root:/ Users / ~~~ / Dropbox / TODOAPP

应用程序跟踪|框架跟踪|完整追踪 app / views / layouts / application.html.erb:5:在`_app_views_layouts_application_html_erb__1375052121185580577_70165167901400&#39; 请求

参数:

无 切换会话转储 切换env转储 响应

接头:

application.css

&#13;
&#13;
/*
 * 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 .
 */
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:1)

以下是您应该尝试的一些事项:

  1. 尝试运行rake资产:清理资产:预编译
  2. 再次尝试运行该命令
  3. 重新启动您的网络服务器
  4. 似乎没有导入来自bootstrap的文件。如果以上操作无效,我还会尝试手动删除引导文件,然后手动添加它们。