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

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -