Best way to pass name from HTML file upload to PSQL statement using Ruby? -
for example:
<form action="/new/details"> <input type="file" name="upload" accept="file_extension"> <input type="submit"> </form>
'upload' needs inserted psql statement using ruby
db.exec("copy details '?????' delimiter ',' csv;")
Comments
Post a Comment