Re: [Rails] How to remove empty object from array

2012-07-02 Thread Ahmy Yulrizka
for erros you can call method errors on each model object. the other one, im not really sure. But one thing I could think of is adding a virtual attribute on the model. and display a check box to the user wether to save the record or not. then you can iterate to check on that attribute first. Ahm

[Rails] How to remove empty object from array

2012-07-02 Thread renu mehta
Hello, I have a view on which I accept multiple objects of the same model. I create an array like @member_list=[] 5.times{ @member_list