Writing each line from Textarea in a single document
I want write mulitple lines from a textarea to a mongodb database:
First Line
Second Line
Third Line
etc.
Each line should be written in a single document.
So what I first figured out that I might use the gsub-function for
separating the lines and after that I could write them with an each do -
loop to the database.
And this point I got stuck.
Thanks in Advance for helping
No comments:
Post a Comment