[Rails] Re: Model Validations + Urgent

2010-07-20 Thread Hemant Bhargava
kannav rajeev wrote: are you using any plug in for file field like attechment_fu or paperclip . if yes please type No i am not using any thing. On Tue, Jul 20, 2010 at 3:37 PM, Hemant Bhargava li...@ruby-forum.com wrote: -- You received this message because you are subscribed to the

Re: [Rails] Re: Model Validations + Urgent

2010-07-20 Thread Ants Pants
Virtual attributes in your model? not sure if I understand your problem as I've never done file uploads with Rails. def my_non_db_field ## do something end On 20 July 2010 14:20, Hemant Bhargava li...@ruby-forum.com wrote: kannav rajeev wrote: are you using any plug in for file field like

[Rails] Re: Model Validations + Urgent

2010-07-20 Thread Hemant Bhargava
Colin Law wrote: On 20 July 2010 11:07, Hemant Bhargava li...@ruby-forum.com 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

Re: [Rails] Re: Model Validations + Urgent

2010-07-20 Thread Colin Law
On 20 July 2010 14:32, Hemant Bhargava li...@ruby-forum.com wrote: Colin Law wrote: On 20 July 2010 11:07, Hemant Bhargava li...@ruby-forum.com 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