Best way to create multiple projects in one form?

Hi All,

Quick question: I've read a lot about creating building multiple child items to the parent in one form, but what is the best way to create multiple instances of a model in one form, eg: creating up to 10 projects in one form.

Best

Why not create an array of model objects and instantiate it using a for loop.

Neha Chopra wrote:

Why not create an array of model objects and instantiate it using a for loop.

On Feb 11, 2:50 pm, Robert Malko <rails-mailing-l...@andreas-s.net>

I have done a for loop in the create action but can't figure out how to use error checking as I'm getting a lot of double rendering errors.

You cant render at multiple places. If you have to render different partials then put them in a block but dont call render :update again and again/. Rather user render :update do |page| <%all ur renders here%> end