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

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -