gpt4 book ai didi

ruby-on-rails - 错误//未初始化常量 Sass::Rails::Application (NameError)]//运行时 'rails server'

转载 作者:数据小太阳 更新时间:2023-10-29 08:09:50 26 4
gpt4 key购买 nike

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

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>'

最佳答案

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

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

关于ruby-on-rails - 错误//未初始化常量 Sass::Rails::Application (NameError)]//运行时 'rails server',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12939344/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com