diff --git a/app/actions/workouts/create.rb b/app/actions/workouts/create.rb index 02a7497..812ec7d 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.write req.params["file"]["tempfile"] tempfile.rewind gpxfile = gpx_parser.call(file: tempfile)