1

我试图包含@import "bootstrap";在样式表中名为 custom.css.scss 的文件中

现在在运行应用程序时,我得到错误:

Started GET "/static_pages/about" for 127.0.0.1 at 2012-07-24 13:23:20 -0700
Processing by StaticPagesController#about as HTML
  Rendered static_pages/about.html.erb within layouts/application (0.0ms)
Completed 500 Internal Server Error in 44ms

ActionView::Template::Error (different prefix: "C:/" and "D:/Rails/sample_app/ap
p/assets/stylesheets"
  (in D:/Rails/sample_app/app/assets/stylesheets/custom.css.scss)):
    2: <html>
    3: <head>
    4:   <title><%= full_title(yield(:title)) %></title>
    5:   <%= stylesheet_link_tag    "application", media: "all" %>
    6:   <%= javascript_include_tag "application" %>
    7:   <%= csrf_meta_tags %>
    8: </head>
  app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_ht
ml_erb___106293522_33950052'


  Rendered C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.6
/lib/action_dispatch/middleware/templates/rescues/_trace.erb (4.0ms)

请告知如何修复它。

4

2 回答 2

2

无论您在标题中写的内容是什么意思,但我认为这个问题与您的 WIN 设置有关:https ://github.com/rails/rails/issues/660

于 2012-07-24T20:50:54.353 回答
0

我将我的应用程序移到了C:\安装 Rails 的驱动器以解决此问题。

于 2012-07-24T21:11:59.140 回答