问题
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