You need to fix how you are retrieving your model and how you are updating it, so change your code to this:
put '/view1/downloadedit' do
data = JSON.parse(request.body.read)
edit_id = data[0]["downloadID"]
@download_edit = Download.get(edit_id)
puts @download_edit
success = @download_edit.update(
attribute1: data[0][attribute1]
attribute2: data[0][attribute2]
# and so on for all the other attributes...
)
if success
status 201
puts 'edit saved okay'
else
status 201
puts 'edit failed to SAVE'
end
end