V
V
vadimstroganov2015-01-02 17:01:39
Ruby on Rails
vadimstroganov, 2015-01-02 17:01:39

How to make dependent dropdowns in rails_admin?

Good afternoon. I can't figure out how to do the following:
There are two models, Site and Page
In the pages table, there is a site_id field (the id of the site that the page belongs to)
Using the rails_admin gem, create a page with DEPENDENT dropdowns
That is, we clicked create page (page), the first thing we select is site, then depending on the site field, we update the page drop-down list (now it displays pages belonging only to the selected site)
I would be grateful for any help! Happy New Year everyone! :-)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question