skip to Main Content

undefined method `has_one_attached' for #<Class:> (NoMethodError) using Ubuntu + Apache + Passenger

I'm getting this error using Ubuntu + Apache + Passenger. The problem is that I'm not using any database or model. undefined method `has_one_attached' for #<Class:0x0000555c6ad94fd8> (NoMethodError) /usr/local/rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing' /usr/local/rvm/gems/ruby-2.5.1/gems/activestorage-5.2.1/app/models/active_storage/blob/representable.rb:7:in `block in <module:Representable>' /usr/local/rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/concern.rb:122:in `class_eval' /usr/local/rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/concern.rb:122:in `append_features' /usr/local/rvm/gems/ruby-2.5.1/gems/activestorage-5.2.1/app/models/active_storage/blob.rb:23:in `include' /usr/local/rvm/gems/ruby-2.5.1/gems/activestorage-5.2.1/app/models/active_storage/blob.rb:23:in…

VIEW QUESTION
Back To Top
Search