0

I have a Rails application for which I wanna install the gem active storage so that I can save photos on my application and interact with them. Despite that, I input in the console rails active_storage: install and I get the following error:

rails aborted!
LoadError: cannot load such file -- active_storage
C:/Users/andri/Desktop/hoagieShop/hoagieShop/config/application.rb:4:in `require'
C:/Users/andri/Desktop/hoagieShop/hoagieShop/config/application.rb:4:in `<top (required)>'
C:/Users/andri/Desktop/hoagieShop/hoagieShop/Rakefile:4:in `require_relative'
C:/Users/andri/Desktop/hoagieShop/hoagieShop/Rakefile:4:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)

Does anyone understand why? I tried the solution provided here: rails active_storage:install IS NOT WORKING but it did not work.

ffblord
  • 403
  • 3
  • 7
  • 14

1 Answers1

0

in terminal/app folder

reset db

  rake db:reset

migrate db

  rake db:migrate

update the gem file

  bundle install
adarsh
  • 306
  • 5
  • 16