gpt4 book ai didi

ruby-on-rails - 无方法错误 : undefined method `[]' for nil:NilClass when pushing to Heroku

转载 作者:行者123 更新时间:2023-12-04 17:33:38 27 4
gpt4 key购买 nike

Rails 菜鸟在这里。

我在推送到 Heroku 时遇到了问题(NoMethodError: undefined method `[]' for nil:NilClass)。我什至不确定我应该从哪里开始寻找纠正这个问题。

remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: I, [2015-10-04T23:27:47.570225 #397] INFO -- : Writing /tmp/build_1a2df3ea1a8121d7fba6ab542c59ba85/public/assets/application-7fbbda11565ec9a0d53aaeb338357988655d4d81476f99312f8a66772c63bea9.js
remote: rake aborted!
remote: NoMethodError: undefined method `[]' for nil:NilClass
remote: /tmp/build_1a2df3ea1a8121d7fba6ab542c59ba85/vendor/bundle/ruby/2.2.0/gems/sprockets-3.3.5/lib/sprockets/sass_processor.rb:266:in `sprockets_context'
remote:

最佳答案

我能够通过将我的 application.css 文件重命名为 application.css.scss 来解决这个问题。

关于ruby-on-rails - 无方法错误 : undefined method `[]' for nil:NilClass when pushing to Heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32939496/

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