How to give validation on a field which is not a database column. I mean
i am having a file field(upload_resume) in my views. So i want to give
validation on it that size should be less then 1mb. I tried
self.upload_resume and params[:upload_resume] but both are not working.
So guys, light me some directions.