Skip to content

undefined method `interested_id_eq' for Ransack::Search with a model with unconventional table name #3676

@ktaragorn

Description

@ktaragorn

Full error is
undefined method interested_id_eq' for Ransack::Search<class: Bar, base: Grouping <combinator: and>>:Ransack::Search`

This is on a Bar model which has_many :interested and Interested is a model which belongs_to :bar and does self.table_name = "interested"

The workaround for this issue is identical to #2565 and that is suffient for me cuz I dont need to filter on this model, but others might face this as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions