Can't get past error in Rails Setup- `LoadError: cannot load such file — active_storage/engine`

我的梦境 提交于 2019-12-06 08:08:45

问题


I'm trying to setup a new Rails application and having an issue that I can't seem to resolve. When trying to run rake db:drop or rake db:create I keep getting the error:

LoadError: cannot load such file -- active_storage/engine

At first I was getting an error:

LoadError: cannot load such file -- bootsnap/setup but was able to clear that after adding it to my gemfile.

I see some info on Github that suggests uncommenting require "active_storage/engine" but I've already done that. Not sure what to do.


回答1:


I got this error whilst downgrading my app from rails 6.0 to 5.2

Check in your config/application.rb for the line

require "action_mailbox/engine"

remove it.



来源:https://stackoverflow.com/questions/50915148/cant-get-past-error-in-rails-setup-loaderror-cannot-load-such-file-active

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!