使用此代码,我无法在rails中安装active_storage。
'C:\Sites\muse>rails active_storage:install'
我的Rails版本是5.1.7
我添加了
require "active_storage/engine"
到应用程序。rb
并添加
gem 'activestorage'
到Gemfile
我在终端上得到以下结果
rails aborted!
LoadError: cannot load such file -- active_storage/engine
C:/Sites/muse/config/application.rb:4:in `require'
C:/Sites/muse/config/application.rb:4:in `<top (required)>'
C:/Sites/muse/Rakefile:4:in `require_relative'
C:/Sites/muse/Rakefile:4:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)