Welcome#Index中的Ruby On Rails语法错误

时间:2015-05-09 05:14:14

标签: html css ruby-on-rails twitter-bootstrap

我在rails应用程序中将bootstrap实现到我的ruby中,现在我遇到了以下错误:

Sass::SyntaxError in Welcome#index
Showing /home/ubuntu/workspace/app/views/layouts/application.html.erb where line #6 raised:

File to import not found or unreadable: bootstrap-sockets.
Load paths:
  /home/ubuntu/workspace/app/assets/images
  /home/ubuntu/workspace/app/assets/javascripts
  /home/ubuntu/workspace/app/assets/stylesheets
  /home/ubuntu/workspace/vendor/assets/javascripts
  /home/ubuntu/workspace/vendor/assets/stylesheets
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/turbolinks-2.5.3/lib/assets/javascripts
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/jquery-rails-3.1.2/vendor/assets/javascripts
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/coffee-rails-4.0.1/lib/assets/javascripts
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/bootstrap-sass-3.3.4.1/assets/stylesheets
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/bootstrap-sass-3.3.4.1/assets/javascripts
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/bootstrap-sass-3.3.4.1/assets/fonts
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/bootstrap-sass-3.3.4.1/assets/images
  /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/bootstrap-sass-3.3.4.1/assets/stylesheets
  (in /home/ubuntu/workspace/app/assets/stylesheets/application.css.scss:17)
Extracted source (around line #6):
3
4
5
6
7
8
9

  <head>
    <title>Bloccit</title>
    <meta name="viewport" content="width=device-width, initial-scale=1"
    <%= stylesheet_link_tag    "application", media: "all" %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>
  </head>

Rails.root: /home/ubuntu/workspace

Application Trace | Framework Trace | Full Trace
app/assets/stylesheets/application.css.scss:17
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___973947755503535086_42092360'
Request

Parameters:

None
Toggle session dump
Toggle env dump
Response

Headers:

None

可能导致什么原因?

1 个答案:

答案 0 :(得分:0)

它显示错误在您的

app/assets/stylesheets/application.css.scss:17

请检查一下,告诉我。