9
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RailsにてNoMethodError: undefined method `assets' for で怒られる

Last updated at Posted at 2018-10-22

Capistranoでデプロイしていたら、assetsで怒られる
RailsのAPIモードで作成したから?

よくわからないけど、deploy:assets:precompileでこける

NoMethodError: undefined method `assets' for #<Rails::Application::Configuration:0x0000555de687c348>
Did you mean?  asset_host

require "sprockets/railtie”のコメントアウトを外せば動きました

config/application.rb
require "sprockets/railtie”

でも普通外れてるっぽい
--skip-sprockets で作成したからコメントアウトされたのかな

9
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?