Skip to content

Commit

Permalink
Interim checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
CoralineAda committed Dec 8, 2024
1 parent 2d784a3 commit e988999
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/responses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ class ResponsesController < ApplicationController

def update
@response = Response.find(params[:id])
success = @response.update(raw_codes: response_params[:raw_codes].join(",").split(",").reject(&:empty?).compact.map(&:strip).map(&:downcase))
Rails.logger.info("!!! => response_params[:raw_codes] = #{response_params[:raw_codes]}")

raw_codes = response_params[:raw_codes].first.parse_csv.map(&:strip).reject(&:empty?).compact.map(&:downcase)
success = @response.update(raw_codes: raw_codes)

respond_to do |format|
format.turbo_stream do
Expand Down

0 comments on commit e988999

Please sign in to comment.