Rails doesn't work correctly after update

时间:2019-03-19 15:14:04

标签: mysql ruby-on-rails ruby

I have a problem with Rails, which may seem trivial to you, but I will describe below what is going on.

A set that I use everyday:

  • Ubuntu 18.04
  • ruby-2.4.0
  • Rails 5.2.1 (few days ago was and update to 5.2.2.1)

I had a problem with mysql for a few days, but I solved it and it works. I noticed that all projects stopped working for me at the local. When I try to run a project that was written in Rails 5.2.1, I get this error:

/home/mirek/.rvm/gems/ruby-2.4.0/gems/railties-5.2.1/lib/rails/railtie/configuration.rb:97:in method_missing': undefined methodactive_storage' for #Rails::Application::Configuration:0x00564a221eeae8 (NoMethodError)

The commands like rails s or rails c don't work and rails -T displays a very narrow list of available commands to use.

When I try to use rails db:schema:dump I get:

rails aborted! Don’t know how to build task 'db:schema:dump'

I also checked if other similar versions of Rails would also appear same error and it is the same. I'm looking for a solution in Google but still the same.

Can anyone help me with this?

1 个答案:

答案 0 :(得分:0)

它是在更新后开始的吗?您在Linux环境中工作吗?检查您的文件许可权和owner:group值,它们在更新后可能已更改,您可能需要切换到root才能将它们设置回可用状态。明显?也许吧,但这最近使我迷了很多次!