How to omit existing child records in a nested form in rails?

Method to distinguish between newly created record and old one.

Method to distinguish between newly created record and old one: 'project', :locals => {:f => project_form} if project_form.object. New_record? %.

That's exactly what I needed, thank you – deb Feb 26 '10 at 18:55.

You can try 'project', :locals => {:f => project_form} %> that should give you blank fields for one record. In the controller you can generate multiple records for the relationship 5. Times { @user.projects.

Build } This will make five new empty projects related to the user and your current fields_for will have fields for new records.

I think your answer makes perfect sense, but for some reason the fields are not being highlighted when the validation fails. I get the same problem when generating the fields without form builder. Thanks!

– deb Feb 26 '10 at 18:55.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions