How to ensure that a file has been selected on a file_field?

Does anyone know how to validate if a file has been selected using a
file_field control?
I want to ensure a file has been selected before the associated action
is selected.

Presumably something like validates_presence_of something ?

Any pointers most appreciated…


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs