I am trying to update a resource that has belongs_to and has_many associations via the update method, i can update attributes without a problem but when it comes to associations i always get undefined method 'as_json_api'.
Tried providing it as 'relationships' => , relationships: {}, relationships: ResultSet, relationship: [].
Hello,
I am trying to update a resource that has belongs_to and has_many associations via the update method, i can update attributes without a problem but when it comes to associations i always get undefined method 'as_json_api'.
Tried providing it as 'relationships' => , relationships: {}, relationships: ResultSet, relationship: [].
Thank You