ruby on rails - Kaminari and PG::UndefinedFunction: ERROR: could not identify an equality operator for type point -
i have 2 models: country
, resort
. resort
has field point type "point". model country
has_many
resort
s. when countries resorts kaminari( .page(params[:page]).per(20) ) have error:
pg::undefinedfunction: error: not identify equality operator type point line 1: select distinct "resorts".* "resorts" inner join "coun... ^ : select distinct "resorts".* "resorts" inner join "country_resorts" on "resorts"."id" = "country_resorts"."resort_id" "country_resorts"."country_id" = $1 , "country_resorts"."what" = $2 limit 20 offset 0 pg::undefinedfunction: error: not identify equality operator type point line 1: select distinct "resorts".* "resorts" inner join "coun...
if resorts without kaminari normal result.
how can resolve issue?
Comments
Post a Comment