A
A
Anton2016-08-05 20:32:06
Ruby on Rails
Anton, 2016-08-05 20:32:06

How to mark existing db entries in check_boxes list (ActiveAdmin)?

Created a mold for model "B". It has a check_boxes list and other fields.
The check_boxes values ​​are taken from table "A".
As a result, the values ​​are stored in the native table "B" (other fields) + the values ​​from check_boxes in the table "C".
How to make a check so that the check_boxes that are in the "C" table are marked in the form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SidhArt, 2016-08-06
@SidhArt

api.rubyonrails.org/classes/ActiveRecord/NestedAtt...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question