[Rails] Split to array then save to DB

Paul Livingstone
2006-03-23T16:33:21Z

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, so be gentle.



--
Posted via http://www.ruby-forum.com/.