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 resorts. 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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -