search for: create_multiple_from_string

Displaying 1 result from an estimated 1 matches for "create_multiple_from_string".

2006 Mar 23
3
Split to array then save to DB
Basically I want to take a collection of words like "apple orange banana" textfield in a form and store them into the DB as individual rows. 1. apple 2. orange 3. banana I know I need to use the .split method to divide the words into an array, but i''m not sure how to then save them and where this should happen (in the controller or the model). I''m a newb at this,