score:3

Accepted answer
uploader = LogoUploader.new

uploader.store!(params[:your_file])

score:2

    org = Organization.new(org_params)
    image_path = get_image
    org.logo = Rails.root.join('public', image_path.split('/public/')[1]).open)
   if org.save
     File.delete(image_path)
     render json: org
   end

Related Query

More Query from same tag