From adc62099aa06ba92bcf332390fa06ba2f157a45e Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Tue, 25 Apr 2023 16:47:02 +1000 Subject: [PATCH] File parsing --- app/actions/workouts/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/actions/workouts/create.rb b/app/actions/workouts/create.rb index 812ec7d..873f154 100644 --- a/app/actions/workouts/create.rb +++ b/app/actions/workouts/create.rb @@ -6,7 +6,7 @@ module Adamantium def handle(req, res) tempfile = Tempfile.new(%w/path .gpx/) - tempfile.write req.params["file"]["tempfile"] + tempfile.write req.params[:file][:tempfile] tempfile.rewind gpxfile = gpx_parser.call(file: tempfile)