Re: [Rails] Model Validations + Urgent

2010-07-20 Thread Colin Law
On 20 July 2010 11:07, Hemant Bhargava wrote: > Hello all, > > 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 pa

Re: [Rails] Model Validations + Urgent

2010-07-20 Thread kannav rajeev
are you using any plug in for file field like attechment_fu or paperclip . if yes please type On Tue, Jul 20, 2010 at 3:37 PM, Hemant Bhargava wrote: > Hello all, > > 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

[Rails] Model Validations + Urgent

2010-07-20 Thread Hemant Bhargava
Hello all, 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, l