O
O
oleg_skliarenko2013-12-21 00:32:05
Ruby on Rails
oleg_skliarenko, 2013-12-21 00:32:05

How to create multiple objects in one form in RoR?

How to create multiple objects of the same class, in one form and without using nested forms?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sdevalex, 2013-12-21
@sdevalex

- form_for :items do |f|
   - @items.each do |i|
      - f.fields_for i do |ff|
         = ff.text_field :name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question