Started DELETE "/relationships/2" for ::1 at 2020-06-24 23:02:12 +0900
Processing by RelationshipsController#destroy as JS
Parameters: {"commit"=>"Unfollow", "id"=>"2"}
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
Relationship Load (6.7ms) SELECT "relationships".* FROM "relationships" WHERE (2) LIMIT $1 [["LIMIT", 1]]
↳ app/controllers/relationships_controller.rb:35:in `destroy'
Completed 500 Internal Server Error in 13ms (ActiveRecord: 6.9ms | Allocations: 3151)
ActiveRecord::StatementInvalid (PG::DatatypeMismatch: ERROR: argument of WHERE must be type boolean, not type integer
LINE 1: ...ECT "relationships".* FROM "relationships" WHERE (2) LIMIT $...
^
):
app/controllers/relationships_controller.rb:35:in `destroy'
rStarted DELETE "/relationships/2" for ::1 at 2020-06-24 23:04:49 +0900
Processing by RelationshipsController#destroy as JS
Parameters: {"commit"=>"Unfollow", "id"=>"2"}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
Completed 500 Internal Server Error in 133ms (ActiveRecord: 21.9ms | Allocations: 60012)
NoMethodError (undefined method `int' for #<RelationshipsController:0x00007fe10bf45cb0>
Did you mean? in?):