skip to Main Content

Postgresql – Rails 7.1, "Is Invalid" on has_many through: Associated Polymorphic Class

When trying to save a new Product::Group, with many Product::Features, I get the error "Features is invalid" This below gives the error. class Product::ObjectFeature < ApplicationRecord self.table_name = "object_features" belongs_to :feature, class_name: "Product::Feature", foreign_key: :feature_id, inverse_of: :object_features belongs_to :featurable, polymorphic:…

VIEW QUESTION

Nginx – App not starting with cryptic Passenger log error

I have a Rails app set up with Passenger + Nginx. When trying to access the app I get the following error in passenger's logs: /home/my_user/.rbenv/versions/3.3.1/bin/ruby: No such file or directory -- Passenger AppPreloader: /home/my_user/domains/my_domain/app/current (LoadError) However the file /home/my_user/.rbenv/versions/3.3.1/bin/ruby…

VIEW QUESTION
Back To Top
Search