How shall I set the form fields to be able to insert multiple rows in the database for a single model.
I am updating a div with another link and cannot use the form hel
posts = Array.new posts << {:title => "title 1"} posts << {:title => "title 2"} Post.create(posts)
is this what you're trying to do?
posts = [] posts << Post.new(:title => "title 1") posts << Post.new(:title => "title 2") posts.each do |post| post.save end