3

当我去运行服务器时,我收到此错误:

C:\Users\myusername\sass>rails server
C:/Users/myusername/sass/config/application.rb:13:in `<module:Sass>': uninitialized 
constant Sass::Rails::Application (NameError)
        from C:/Users/myusername/sass/config/application.rb:12:in `<top (required)
>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:53:in `require'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:53:in `block in <top (required)>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:50:in `tap'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:50:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'
4

1 回答 1

1

Sass是一个 Ruby 库,顺便提一下,它也被 Ruby 使用。您应该为 Rails 应用程序使用不同的名称。

再次运行生成器并选择不同的名称,例如myproject或其他任何名称(Ruby 模块除外)。

于 2012-10-17T16:55:19.160 回答