Hi Giri, There's a gem 'activerecord-import' (https://github.com/zdennis/activerecord-import/wiki) that lets you do that easily. All you need to do is call, `Url.import urls`
On Wednesday, March 12, 2014 8:40:57 AM UTC+5:30, Giri wrote: > > So I have bookmark controller which has the 7 default RESTful actions. > > Now I would like to have a form for batch bookmark creation. > > Its going to have a *textarea field* where user can fill with urls. (One > URL per line) > > Upon submission, I would like to bulk insert those urls to the database. > > Can someone help me to achieve this? > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d2b9891a-bdcf-4fca-96d6-bfa975c97231%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.