I want to create multiple objects by submitting a form with one single textarea input.
I envision:
- each line, a new object
- attributes are separated by commas
E.g. for a User model with the attributes: name, email, activated
Larry Page, [email protected], false
Jeff Bezos, [email protected], true
Mark Zuckerburg, [email protected], false
How would I, in the controller, convert the form submission to one array for each "object" (such that I then can iterate over them and perform creation)?