From 197aad8a8d708de2758551a38ee1d16c601a5f2d Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 4 Jul 2023 02:53:24 -0700 Subject: [PATCH] Fix remix render method --- app/controllers/api/v1/parties_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index aa78acd..c841a26 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -22,6 +22,7 @@ module Api party = Party.new party.user = current_user if current_user party.attributes = party_params if party_params + ap party # unless party_params.empty? # party.attributes = party_params @@ -76,8 +77,8 @@ module Api new_party.local_id = party_params[:local_id] if !party_params.nil? if new_party.save - render json: PartyBlueprint.render(new_party, view: :created, root: :party, - meta: { remix: true }) + render json: PartyBlueprint.render(new_party, view: :created, root: :party), + status: :created else render_validation_error_response(new_party) end