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’
(https://github.com/zdennis/activerecord-import/wiki) that lets you do
that
easily. All you need to do is call, Url.import urls

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs