How to check the file field empty

hi,

How to check the file selected or not while uploading form in ruby or
empty file selected

Regards,
Raju