How to batch create posts?

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?

Hi Giri, There’s a gem ‘activerecord-import’ (Home · zdennis/activerecord-import Wiki · GitHub) that lets you do that easily. All you need to do is call, Url.import urls